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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user