(0,0) respawning bug

From DoomWiki.org

Revision as of 11:28, 24 October 2005 by Bloodshedder (talk | contribs) (various changes)


Monsters in the void on Doom II MAP30.

The (0, 0) respawning bug was a bug that existed in all official releases of the Doom engine. When a monster is spawned during play rather than at level start, it has no corresponding mapthing, so the mapthing fields inside it are all set to zero. When the code that performs Nightmare or -respawn monster respawning considers such a monster, it will be respawned at the point (0, 0) regardless of that point's nature.

This bug was first widely noticed on Doom II's MAP30: Icon of Sin, where if the player remains in the level for a long enough time, huge numbers of monsters will appear in the void to the left of the valid map area.

This bug was first repaired in the Eternity Engine by James "Quasar" Haley by allowing such monsters to respawn at the point they died rather than (0, 0). This fix was later adapted by several other source ports, including PrBoom.