diff options
Diffstat (limited to 'sim.c')
-rw-r--r-- | sim.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -67,7 +67,7 @@ main_event() static SDL_Event event; static uint inp = MOUSE_LOCK * 1024; static double s = 0.5; - uint8 q; + uint8 q = 0; while(SDL_PollEvent(&event)) { switch (event.type) { @@ -171,7 +171,7 @@ main_event() return 0; } -int main() +int main(int argc, char *argv[]) { Uint32 ltick, fdif; cam.pos.x = cam.pos.z = 0; @@ -197,4 +197,6 @@ int main() if (ltick < fdif) SDL_Delay(fdif - ltick); } + + return 0; } |