[src/main.c] TIMER_ANY :sry:

This commit is contained in:
KikooDX 2020-08-29 16:17:34 +02:00
parent 40fe31ccb6
commit 149af5c0e0
1 changed files with 1 additions and 1 deletions

View File

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