diff options
author | Krow Savcik <krow@savcik.xyz> | 2024-02-13 09:04:23 +0200 |
---|---|---|
committer | Krow Savcik <krow@savcik.xyz> | 2024-02-13 09:04:23 +0200 |
commit | 64f2217be56bebcfd66686a897336d179558706a (patch) | |
tree | 0b0175b09d31d67f9d21902ba0d6126bbf1a98ef /sim.c | |
parent | 15cbf8f2321d68b3bdfe89c39deb8f1b75f24664 (diff) |
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; } |