diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-03-19 11:34:14 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-03-19 11:34:14 (EDT) |
commit | 5301f9e578f399fb4b78a03ff2b1401f37dcf62d (patch) | |
tree | 4d309a33b9925a53d69fb0f58a82ce8aaeb8c13a /src | |
parent | e7426afc020a122ae45975fe076ba1a50d94281c (diff) | |
download | dodge-balls-5301f9e578f399fb4b78a03ff2b1401f37dcf62d.zip dodge-balls-5301f9e578f399fb4b78a03ff2b1401f37dcf62d.tar.gz dodge-balls-5301f9e578f399fb4b78a03ff2b1401f37dcf62d.tar.bz2 |
main-menu: Quit on action errors
Diffstat (limited to 'src')
-rw-r--r-- | src/main-menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main-menu.c b/src/main-menu.c index 685ea8c..de8bb63 100644 --- a/src/main-menu.c +++ b/src/main-menu.c @@ -330,7 +330,7 @@ db_main_menu(void) case SDLK_KP_ENTER: if (active->action(active-> user_data) - > 0) + != 0) { _db_main_menu_quit = 2; } @@ -360,7 +360,7 @@ db_main_menu(void) if (db_pt_in_rect(event.button.x, event.button.y, &active->rect)) { - if (active->action(active->user_data) > + if (active->action(active->user_data) != 0) { _db_main_menu_quit = 2; } |