From eb2013efc0a6201d0e46de65c1a905b676d13d01 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 22 Oct 2005 16:52:16 +0000 Subject: Cleanup: it was absolutely stupid for game_wants_statusbar() to be a function, since it took no parameters by which to vary its decision, and in any case it's hard to imagine a game which only _conditionally_ wants a status bar. Changed it into a boolean data field in the backend structure. [originally from svn r6417] --- mines.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'mines.c') diff --git a/mines.c b/mines.c index c500ac4..49702ff 100644 --- a/mines.c +++ b/mines.c @@ -3023,11 +3023,6 @@ static float game_flash_length(game_state *oldstate, game_state *newstate, return 0.0F; } -static int game_wants_statusbar(void) -{ - return TRUE; -} - static int game_timing_state(game_state *state, game_ui *ui) { if (state->dead || state->won || ui->completed || !state->layout->mines) @@ -3079,7 +3074,7 @@ const struct game thegame = { game_anim_length, game_flash_length, FALSE, FALSE, game_print_size, game_print, - game_wants_statusbar, + TRUE, /* wants_statusbar */ TRUE, game_timing_state, BUTTON_BEATS(LEFT_BUTTON, RIGHT_BUTTON), }; -- cgit v1.1