tile_cursor.y = 0;
tile_cursor.target_x = 0;
tile_cursor.target_y = 0;
+
+ tile_cursor.sx = 0;
+ tile_cursor.sy = 0;
}
void InitOverlayInfo()
tile_cursor.xpos = x;
tile_cursor.ypos = y;
- tile_cursor.target_x = gfx.sx + x * gfx.game_tile_size;
- tile_cursor.target_y = gfx.sy + y * gfx.game_tile_size;
+ tile_cursor.target_x = tile_cursor.sx + x * gfx.game_tile_size;
+ tile_cursor.target_y = tile_cursor.sy + y * gfx.game_tile_size;
tile_cursor.moving = TRUE;
}
tile_cursor.moving = FALSE;
}
+void SetTileCursorSXSY(int sx, int sy)
+{
+ tile_cursor.sx = sx;
+ tile_cursor.sy = sy;
+}
+
void SetOverlayEnabled(boolean enabled)
{
overlay.enabled = enabled;
int xpos, ypos; /* tile cursor level playfield position */
int x, y; /* tile cursor current screen position */
int target_x, target_y; /* tile cursor target screen position */
+
+ int sx, sy; /* tile cursor screen start position */
};
struct OverlayInfo
void SetTileCursorActive(boolean);
void SetTileCursorTargetXY(int, int);
void SetTileCursorXY(int, int);
+void SetTileCursorSXSY(int, int);
void SetOverlayEnabled(boolean);
void SetOverlayActive(boolean);
boolean GetOverlayActive();