]> git.draconx.ca Git - rrace.git/blobdiff - src/motif.c
motif: State structure cleanup
[rrace.git] / src / motif.c
index c4ea62dbbd25b5d5e4a4b7d6ceec50a3d8f4e40d..fbdc9a750a2e86cb934109de3d3e9aebbb8ec791 100644 (file)
@@ -178,7 +178,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;
+       state->view_goal_on_game = !!view_goal;
        x11_redraw_game(state, game_check_goal(&state->board));
 }