diff options
-rw-r--r-- | apps/plugins/brickmania.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index 074051d2fe..937c4e473c 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c | |||
@@ -557,6 +557,7 @@ void sleep (int secs) { | |||
557 | if (*rb->current_tick>=count) | 557 | if (*rb->current_tick>=count) |
558 | done=true; | 558 | done=true; |
559 | } | 559 | } |
560 | rb->yield(); | ||
560 | } | 561 | } |
561 | 562 | ||
562 | } | 563 | } |
@@ -1292,6 +1293,7 @@ int game_loop(void){ | |||
1292 | } | 1293 | } |
1293 | if (end > *rb->current_tick) | 1294 | if (end > *rb->current_tick) |
1294 | rb->sleep(end-*rb->current_tick); | 1295 | rb->sleep(end-*rb->current_tick); |
1296 | else rb->yield(); | ||
1295 | } | 1297 | } |
1296 | } | 1298 | } |
1297 | 1299 | ||