When appearing offscreen, spawn outside of max radar range.
This commit is contained in:
parent
fce61fdd0e
commit
a2665e527c
|
@ -77,8 +77,8 @@ void doSpawners(void)
|
||||||
e->y = rand() % 2 ? 0 : BATTLE_AREA_HEIGHT;
|
e->y = rand() % 2 ? 0 : BATTLE_AREA_HEIGHT;
|
||||||
}
|
}
|
||||||
|
|
||||||
e->x += (rand() % 2) ? -SCREEN_WIDTH : SCREEN_WIDTH;
|
e->x += (rand() % 2) ? -SCREEN_WIDTH * 3 : SCREEN_WIDTH * 3;
|
||||||
e->y += (rand() % 2) ? -SCREEN_HEIGHT : SCREEN_HEIGHT;
|
e->y += (rand() % 2) ? -SCREEN_HEIGHT * 3 : SCREEN_HEIGHT * 3;
|
||||||
|
|
||||||
if (flags != -1)
|
if (flags != -1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue