X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Frexit.c;h=b9da482f650d07597b4d2e6a92f81be7c19fed1b;hb=823357b90906df451402358eda7b995143922496;hp=f7bb3f23e8553132a8ad2a84c72be0448cb61b31;hpb=7bebc9943d1648d56968146b17c9459affb183c6;p=plomrogue
diff --git a/src/rexit.c b/src/rexit.c
index f7bb3f2..b9da482 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 err, struct World * world, char * msg)
{
+ if (0 == err)
+ {
+ return;
+ }
cleanup(world);
printf(msg);
exit(EXIT_FAILURE);