]> 4ch.mooo.com Git - 16.git/blobdiff - src/16.c
[16_ca needs huge amounts of work and I should remember what needs to be done soon...
[16.git] / src / 16.c
index af711c37aa1d794319d6f6351b0ab87f0dc9d4d6..e87446c6378f1192920ec09c11ff0c2b05db0f5e 100755 (executable)
--- a/src/16.c
+++ b/src/16.c
@@ -28,8 +28,6 @@ main(int argc, char *argv[])
        static global_game_variables_t gvar;\r
        Startup16(&gvar);\r
 \r
-       gvar.engi_stat = ENGI_RUN;\r
-\r
        /* save the palette */\r
        modexPalSave(gvar.video.dpal);\r
        modexFadeOff(4, gvar.video.dpal);\r
@@ -39,10 +37,10 @@ main(int argc, char *argv[])
 //     modexPalBlack();        //so player will not see loadings~\r
        IN_Default(0,&gvar.player[0],ctrl_Joystick, &gvar);\r
        //modexprint(&screen, 32, 32, 1, 2, 0, "a", 1);\r
-       while(ENGI_QUIT != gvar.engi_stat)\r
+       while(1)\r
        {\r
                IN_ReadControl(&gvar.player[0], &gvar);\r
-               if(IN_KeyDown(sc_Escape)) gvar.engi_stat = ENGI_QUIT;\r
+               if(IN_KeyDown(sc_Escape)) break;\r
                shinku(&gvar);\r
                _DEBUGF("Serial debug output printf test %u %u %u\n",1U,2U,3U);\r
        }\r