Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/space-dragon.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2014-10-12 14:29:33 +0400
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2014-10-12 14:29:33 +0400
commite4855629ed606d97c865c5503424458203494ae7 (patch)
tree8a101c3a8fd4bc6d84e0a1ea56a2807f0620c32c
parent01001ac1bea4b14625a8cce944b7b9b20f361a54 (diff)
No vibration while god mode
-rw-r--r--src/game.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game.c b/src/game.c
index fa812c1..ba99ae8 100644
--- a/src/game.c
+++ b/src/game.c
@@ -156,12 +156,10 @@ static void update_asteroids()
asteroid->x += asteroid->speed_x;
asteroid->y += asteroid->speed_y;
// Game over?
- if (is_boom(asteroid) && !game_over_stop_time)
+ if (!god_mode && is_boom(asteroid) && !game_over_stop_time)
{
vibes_short_pulse();
- if (!god_mode)
- game_over_stop_time = time_ticks + (500 / UPDATE_INTERVAL); // Some more time to rumble...
- //reset_game();
+ game_over_stop_time = time_ticks + (500 / UPDATE_INTERVAL); // Some more time to rumble...
}
asteroid = asteroid->next;
}