Fix dead guard not spawning at the beginning of the level

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-03-15 16:27:59 +01:00
parent 20755e93ed
commit da00c5237f
6 changed files with 7 additions and 3 deletions

View File

@@ -318,6 +318,10 @@ abstract class Enemy extends Entity {
// 1. Check Difficulty & Compatibility
if (!MapObject.shouldSpawn(objId, difficulty)) return null;
// Explicitly ignore "Dead Guard" Map ID so Decorative.trySpawn can handle it
// In Wolf3D, 124 is the dead guard.
if (objId == 124) return null;
// If the checkbox is checked, block non-Shareware enemies
if (isSharewareMode && !MapObject.isSharewareCompatible(objId)) return null;