From 64f2217be56bebcfd66686a897336d179558706a Mon Sep 17 00:00:00 2001 From: Krow Savcik Date: Tue, 13 Feb 2024 09:04:23 +0200 Subject: fix errors --- sim.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sim.c') diff --git a/sim.c b/sim.c index a97907e..b696692 100644 --- a/sim.c +++ b/sim.c @@ -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; } -- cgit v1.2.3