From 59088cce0cf7183ecdd0a1d886a407faade1f877 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Wed, 13 Jan 2016 16:09:06 -0500 Subject: [PATCH] Make mines simply disappear when they time out rather than exploding. The explosions of mines off in the distance are extremely annoying in the Mars mission, in particular. There's no real point in them doing a timed off-screen explosion, anyway; if they just disappear, the player won't notice. --- src/game.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game.cpp b/src/game.cpp index 646bd36..ff3e10b 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -481,7 +481,9 @@ static void game_doCollectables() } else { - if (collectable->type == P_MINE) + if ((collectable->type == P_MINE) && (collectable->x >= 0) && + (collectable->x <= screen->w) && (collectable->y >= 0) && + (collectable->y <= screen->h)) collectable_explode(collectable); prevCollectable->next = collectable->next; delete collectable;