aboutsummaryrefslogtreecommitdiff
path: root/sim.c
diff options
context:
space:
mode:
authorKrow Savcik <krow@savcik.xyz>2024-02-13 09:04:23 +0200
committerKrow Savcik <krow@savcik.xyz>2024-02-13 09:04:23 +0200
commit64f2217be56bebcfd66686a897336d179558706a (patch)
tree0b0175b09d31d67f9d21902ba0d6126bbf1a98ef /sim.c
parent15cbf8f2321d68b3bdfe89c39deb8f1b75f24664 (diff)
fix errorsHEADmaster
Diffstat (limited to 'sim.c')
-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;
}