Added 'Fix enemies not spawning near water' checkbox to Fixes (#3179)

This commit is contained in:
Andrew Van Caem
2023-10-31 02:55:02 +11:00
committed by GitHub
parent e4cfc8852d
commit dab070a8a1
3 changed files with 7 additions and 1 deletions

View File

@@ -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;