From 6c616bb4a269a2dd270fdead5b554c6476ec8951 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Sun, 5 Feb 2017 17:37:22 -0500 Subject: [PATCH] Fixed where mines appear when screen width is larger than 800. This causes the game to be easier, but whatever. The game is easier with a bigger view anyway. --- src/game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game.cpp b/src/game.cpp index 55e8012..a97c5e1 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -2486,9 +2486,9 @@ int game_mainLoop() // but I'm not entirely sure what the original intention was. // For now, I've set the range to [800, 1500], which // approximately replicates the original's results. - collectable_add(RANDRANGE(800, 1500), + collectable_add(screen->w + RANDRANGE(0, 700), RANDRANGE(-screen->h / 3, (4 * screen->h) / 3), P_MINE, 25, - 180 + rand() % 60); + 180 * screen->w / 800 + RANDRANGE(0, 60)); } if (engine.addAliens > -1)