Added 'Fix enemies not spawning near water' checkbox to Fixes (#3179)
This commit is contained in:
@@ -278,7 +278,7 @@ void EnEncount1_SpawnStalchildOrWolfos(EnEncount1* this, PlayState* play) {
|
||||
break;
|
||||
}
|
||||
if ((player->actor.yDistToWater != BGCHECK_Y_MIN) &&
|
||||
(floorY < (player->actor.world.pos.y - player->actor.yDistToWater))) {
|
||||
(floorY < (player->actor.world.pos.y + player->actor.yDistToWater*(CVarGetInteger("gEnemySpawnsOverWaterboxes", 0) ? 1 : -1)))) {
|
||||
break;
|
||||
}
|
||||
spawnPos.y = floorY;
|
||||
|
||||
Reference in New Issue
Block a user