diff options
Diffstat (limited to 'apps/plugins/clix.c')
-rw-r--r-- | apps/plugins/clix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/clix.c b/apps/plugins/clix.c index 9c53bdab70..68c56ec1d5 100644 --- a/apps/plugins/clix.c +++ b/apps/plugins/clix.c | |||
@@ -684,7 +684,7 @@ static int clix_handle_game(struct clix_game_state_t* state) | |||
684 | 684 | ||
685 | while(true) | 685 | while(true) |
686 | { | 686 | { |
687 | if (blink_tick < *rb->current_tick) { | 687 | if (TIME_AFTER(*rb->current_tick, blink_tick)) { |
688 | state->blink = state->blink ? false : true; | 688 | state->blink = state->blink ? false : true; |
689 | blink_tick = *rb->current_tick + BLINK_TICKCOUNT; | 689 | blink_tick = *rb->current_tick + BLINK_TICKCOUNT; |
690 | } | 690 | } |
@@ -692,7 +692,7 @@ static int clix_handle_game(struct clix_game_state_t* state) | |||
692 | time = 6; /* number of ticks this function will loop reading keys */ | 692 | time = 6; /* number of ticks this function will loop reading keys */ |
693 | start = *rb->current_tick; | 693 | start = *rb->current_tick; |
694 | end = start + time; | 694 | end = start + time; |
695 | while(end > *rb->current_tick) | 695 | while(TIME_BEFORE(*rb->current_tick, end)) |
696 | { | 696 | { |
697 | oldx = state->x; | 697 | oldx = state->x; |
698 | oldy = state->y; | 698 | oldy = state->y; |