]> 4ch.mooo.com Git - 16.git/commitdiff
wwww yakuji wwww ca use to load maps w
authorsparky4 <sparky4@cock.li>
Thu, 8 Sep 2016 14:50:03 +0000 (09:50 -0500)
committersparky4 <sparky4@cock.li>
Thu, 8 Sep 2016 14:50:03 +0000 (09:50 -0500)
src/lib/16_ca.c
src/lib/typdefst.h

index 67bd4f400bb9e3505da830a9e080fdb778b66991..6cde80743d694b6a083795bf48fe8be5e967ad48 100755 (executable)
@@ -1102,8 +1102,8 @@ void CAL_SetupMapFile (global_game_variables_t *gvar)
 //\r
 // open the data file\r
 //\r
-//todo multiple files\r
-       if ((gvar->ca.file.maphandles[0] = open("data/test.map",\r
+//TODO: multiple files\r
+       if ((gvar->ca.file.maphandle[0] = open("data/test.map",\r
                 O_RDONLY | O_BINARY, S_IREAD)) == -1)\r
        {\r
                printf("Can't open data/test.map!");\r
@@ -1234,8 +1234,9 @@ void CA_Shutdown(global_game_variables_t *gvar)
        close(gvar->handle.profilehandle);\r
 #endif\r
        close(gvar->handle.showmemhandle);\r
+\r
+       close(gvar->ca.file.maphandle);\r
 /*++++\r
-       close(maphandle);\r
        close(grhandle);\r
        close(audiohandle);*/\r
 }\r
index d0e4a463d08d5868bf00b10e712fe1e5e6df902f..8373f8ee5cc5351b6f8e7f4000d45b68278a2aed 100755 (executable)
@@ -185,7 +185,7 @@ typedef struct
 \r
 typedef struct\r
 {\r
-       int                     maphandles[4];          // handle to MAPTEMP / GAMEMAPS\r
+       int                     maphandle[4];           // handle to MAPTEMP / GAMEMAPS\r
 } handle_t;\r
 \r
 typedef struct\r