Impressive bugfixTM

This commit is contained in:
KikooDX 2020-09-20 18:16:01 +02:00
parent 149af5c0e0
commit 95f1b7dea6
1 changed files with 1 additions and 2 deletions

View File

@ -74,8 +74,7 @@ int main(void)
player_x = start_x;
player_y = start_y;
//fps cap timer
timer_setup(TIMER_ANY, 1000000/FPS, callback, &has_ticked);
timer_start(0);
timer_start(timer_setup(TIMER_ANY, 1000000/FPS, callback, &has_ticked));
while (game_loop) {
while(!has_ticked) sleep();
has_ticked = 0;