X-Git-Url: https://git.draconx.ca/gitweb/rrace.git/blobdiff_plain/991d1e7ca8ae3bee59619812e9f08bde8c17ad02..23aee3322744aa3c65de28c3ebe1509e291b8702:/src/motif_ui.c?ds=sidebyside diff --git a/src/motif_ui.c b/src/motif_ui.c index c31d839..dfe4e82 100644 --- a/src/motif_ui.c +++ b/src/motif_ui.c @@ -223,7 +223,7 @@ static void do_input_move(struct app_state *state, int x, int y) if (game_do_move(&state->board, x, y) == 0) { uint_least32_t mask; - if (game_check_goal(&state->board)) { + if (game_check_goal(&state->board) == 0) { int_fast32_t ms = game_finish(&state->board); unsigned min, sec; @@ -251,7 +251,7 @@ static void do_input_move(struct app_state *state, int x, int y) static void set_view_goal(struct app_state *state, int view_goal) { state->view_goal_on_game = view_goal; - x11_redraw_game(state, GOAL_MASK); + x11_redraw_game(state, game_check_goal(&state->board)); } static void game_input(Widget w, void *data, void *cb_data)