diff options
Diffstat (limited to 'map.c')
| -rw-r--r-- | map.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -3061,6 +3061,19 @@ static float game_flash_length(const game_state *oldstate, return 0.0F; } +static void game_get_cursor_location(const game_ui *ui, + const game_drawstate *ds, + const game_state *state, + const game_params *params, + int *x, int *y, int *w, int *h) +{ + if(ui->cur_visible) { + *x = COORD(ui->cur_x); + *y = COORD(ui->cur_y); + *w = *h = TILESIZE; + } +} + static int game_status(const game_state *state) { return state->completed ? +1 : 0; @@ -3260,6 +3273,7 @@ const struct game thegame = { game_redraw, game_anim_length, game_flash_length, + game_get_cursor_location, game_status, true, true, game_print_size, game_print, false, /* wants_statusbar */ |