From: Nick Bowler Date: Wed, 4 Jan 2023 04:06:36 +0000 (-0500) Subject: motif: Remove console printout when game is finished. X-Git-Url: http://git.draconx.ca/gitweb/rrace.git/commitdiff_plain/935b93502aeb0c39892a127ac8cb1380652fd61b motif: Remove console printout when game is finished. This was implemented early on before there was GUI feedback upon finishing the game. It is no longer necessary. --- diff --git a/src/motif.c b/src/motif.c index 66e31df..57e1475 100644 --- a/src/motif.c +++ b/src/motif.c @@ -158,16 +158,7 @@ static void do_input_move(struct app_state *state, int x, int y) if ((mask = game_do_move(&state->board, x, y)) != 0) { if (game_check_goal(&state->board) == 0) { - int_fast32_t ms = game_finish(&state->board); - unsigned min, sec; - - ui_timer_update(state, ms); - - sec = ms / 1000, ms %= 1000; - min = sec / 60, sec %= 60; - printf("You won! Time was %u:%.2u.%.3u\n", - min, sec, (unsigned)ms); - + ui_timer_update(state, game_finish(&state->board)); mask |= ~GOAL_MASK; }