void RedrawPlayfield(boolean force_redraw, int x, int y, int width, int height)
{
void RedrawPlayfield(boolean force_redraw, int x, int y, int width, int height)
{
{
BlitBitmap(backbuffer, window,
REAL_SX, REAL_SY, FULL_SXSIZE, FULL_SYSIZE, REAL_SX, REAL_SY);
{
BlitBitmap(backbuffer, window,
REAL_SX, REAL_SY, FULL_SXSIZE, FULL_SYSIZE, REAL_SX, REAL_SY);
{
DrawBackground(REAL_SX, REAL_SY, FULL_SXSIZE, FULL_SYSIZE);
{
DrawBackground(REAL_SX, REAL_SY, FULL_SXSIZE, FULL_SYSIZE);
{
ClearRectangle(fieldbuffer, 0, 0, FXSIZE, FYSIZE);
SetDrawtoField(DRAW_BUFFERED);
{
ClearRectangle(fieldbuffer, 0, 0, FXSIZE, FYSIZE);
SetDrawtoField(DRAW_BUFFERED);
{
ClearRectangle(window, REAL_SX, REAL_SY, FULL_SXSIZE, FULL_SYSIZE);
SetDrawtoField(DRAW_DIRECT);
{
ClearRectangle(window, REAL_SX, REAL_SY, FULL_SXSIZE, FULL_SYSIZE);
SetDrawtoField(DRAW_DIRECT);
src_bitmap = graphic_info[graphic].bitmap;
src_x = graphic_info[graphic].src_x;
src_y = graphic_info[graphic].src_y;
offset_x = graphic_info[graphic].offset_x;
offset_y = graphic_info[graphic].offset_y;
src_bitmap = graphic_info[graphic].bitmap;
src_x = graphic_info[graphic].src_x;
src_y = graphic_info[graphic].src_y;
offset_x = graphic_info[graphic].offset_x;
offset_y = graphic_info[graphic].offset_y;
int src_x = mini_startx + graphic_info[graphic].src_x / 8;
int src_y = mini_starty + graphic_info[graphic].src_y / 8;
int src_x = mini_startx + graphic_info[graphic].src_x / 8;
int src_y = mini_starty + graphic_info[graphic].src_y / 8;
static int label_state, label_counter;
int last_game_status = game_status; /* save current game status */
static int label_state, label_counter;
int last_game_status = game_status; /* save current game status */
/* clear door drawing field */
DrawBackground(DX, DY, DXSIZE, DYSIZE);
/* clear door drawing field */
DrawBackground(DX, DY, DXSIZE, DYSIZE);
static int door1 = DOOR_OPEN_1;
static int door2 = DOOR_CLOSE_2;
static unsigned long door_delay = 0;
static int door1 = DOOR_OPEN_1;
static int door2 = DOOR_CLOSE_2;
static unsigned long door_delay = 0;
- int x, start, stepsize = global.door_step_offset;
- unsigned long door_delay_value = global.door_step_delay;
+ int x, start, stepsize = door.step_offset;
+ unsigned long door_delay_value = door.step_delay;
direction = MV_DIR_BIT(direction);
return element_info[element].direction_graphic[action][direction];
direction = MV_DIR_BIT(direction);
return element_info[element].direction_graphic[action][direction];
return element_info[element].graphic[action];
}
int el_dir2img(int element, int direction)
{
return element_info[element].graphic[action];
}
int el_dir2img(int element, int direction)
{