Mercurial > molko
changeset 321:687ac7516bbf
adventure: fix inhibition in case of panic
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 01 Oct 2021 15:04:00 +0200 |
parents | 8f9937403749 |
children | eaab6bd635ab |
files | src/libmlk-adventure/adventure/molko.c |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/libmlk-adventure/adventure/molko.c Fri Oct 01 20:30:00 2021 +0200 +++ b/src/libmlk-adventure/adventure/molko.c Fri Oct 01 15:04:00 2021 +0200 @@ -50,7 +50,6 @@ #define WINDOW_WIDTH 1280 #define WINDOW_HEIGHT 720 - #include "character/neth.h" #include "item/potion.h" @@ -61,6 +60,7 @@ static void crash(void) { + game.inhibit = 0; longjmp(panic_buf, 1); } @@ -76,10 +76,6 @@ if (window_open("Molko's Adventure", WINDOW_WIDTH, WINDOW_HEIGHT) < 0) panic(); - printf("bindir: %s\n", sys_dir(SYS_DIR_BIN)); - printf("datadir: %s\n", sys_dir(SYS_DIR_DATA)); - printf("localedir: %s\n", sys_dir(SYS_DIR_LOCALE)); - /* * From here, we can setup our panic state which requires a window * to be running.