diff options
Diffstat (limited to 'apps/plugins/invadrox.c')
-rw-r--r-- | apps/plugins/invadrox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/invadrox.c b/apps/plugins/invadrox.c index 1886ed4b49..b3e5d164c6 100644 --- a/apps/plugins/invadrox.c +++ b/apps/plugins/invadrox.c @@ -1751,7 +1751,7 @@ void game_loop(void) /* Wait until next frame */ DBG("%ld (%d)\n", end - *rb->current_tick, (CYCLETIME * HZ) / 1000); - if (end > *rb->current_tick) { + if (TIME_BEFORE(*rb->current_tick, end)) { rb->sleep(end - *rb->current_tick); } else { rb->yield(); |