]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_vl.c
wwww
[16.git] / src / lib / 16_vl.c
index 782bd3d654306b22ee891e2d6df22ffa3bcdc382..fbf51fa6bbffd2dd6c91916dc6b291fad8d7f86f 100755 (executable)
@@ -649,8 +649,7 @@ modexNewPal() {
 \r
        /* handle errors */\r
        if(!ptr) {\r
-       printf("Could not allocate palette.\n");\r
-       exit(-1);\r
+               printf("Could not allocate palette.\n");\r
        }\r
 \r
        return ptr;\r
@@ -674,7 +673,6 @@ modexLoadPalFile(byte *filename, byte **palette) {
        file = fopen(filename, "rb");\r
        if(!file) {\r
        printf("Could not open palette file: %s\n", filename);\r
-       exit(-2);\r
        }\r
 \r
        /* read the file */\r
@@ -713,7 +711,6 @@ modexSavePalFile(char *filename, byte *pal) {
        file = fopen(filename, "wb");\r
        if(!file) {\r
        printf("Could not open %s for writing\n", filename);\r
-       exit(-2);\r
        }\r
 \r
        /* write the data to the file */\r