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.
This commit is contained in:
onpon4 2016-01-13 16:09:06 -05:00
parent 2ea268c704
commit 59088cce0c
1 changed files with 3 additions and 1 deletions

View File

@ -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;