aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sim.c6
1 files changed, 4 insertions, 2 deletions
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;
}