X-Git-Url: https://plomlompom.com/repos/index.html?a=blobdiff_plain;f=src%2Frexit.c;h=223c79ba0a2c84630bebe07739e8234a15d6ccbd;hb=a974cdd6664ac23668baf50cdafe80b8c8838b1c;hp=f7bb3f23e8553132a8ad2a84c72be0448cb61b31;hpb=81eaa1110b9721b7e7167dcb49bd1077d7b3f016;p=plomrogue
diff --git a/src/rexit.c b/src/rexit.c
index f7bb3f2..223c79b 100644
--- a/src/rexit.c
+++ b/src/rexit.c
@@ -59,8 +59,12 @@ extern void exit_game(struct World * world)
-extern void exit_err(struct World * world, char * msg)
+extern void exit_err(unsigned char fail, struct World * world, char * msg)
{
+ if (0 == fail)
+ {
+ return;
+ }
cleanup(world);
printf(msg);
exit(EXIT_FAILURE);