When appearing offscreen, spawn outside of max radar range.

This commit is contained in:
Steve 2016-07-28 11:53:14 +01:00
parent fce61fdd0e
commit a2665e527c
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{