From a2665e527cd75d0d498c6df2c785f6a5f110f1be Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 28 Jul 2016 11:53:14 +0100 Subject: [PATCH] When appearing offscreen, spawn outside of max radar range. --- src/battle/spawners.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/battle/spawners.c b/src/battle/spawners.c index 9734c8c..c8fef11 100644 --- a/src/battle/spawners.c +++ b/src/battle/spawners.c @@ -77,8 +77,8 @@ void doSpawners(void) e->y = rand() % 2 ? 0 : BATTLE_AREA_HEIGHT; } - e->x += (rand() % 2) ? -SCREEN_WIDTH : SCREEN_WIDTH; - e->y += (rand() % 2) ? -SCREEN_HEIGHT : SCREEN_HEIGHT; + e->x += (rand() % 2) ? -SCREEN_WIDTH * 3 : SCREEN_WIDTH * 3; + e->y += (rand() % 2) ? -SCREEN_HEIGHT * 3 : SCREEN_HEIGHT * 3; if (flags != -1) {