- fixed some issues with the bodyque and moved this variable into FLevelLocals

* it was never saved in savegames, leaving the state of dead bodies undefined
* it shouldn't be subjected to pointer substitution because all it contains is old dead bodies, not live ones.
This commit is contained in:
Christoph Oelckers 2018-11-19 18:13:23 +01:00
commit ad04001135
12 changed files with 47 additions and 45 deletions

View file

@ -4048,12 +4048,12 @@ void P_SetupLevel(const char *lumpname, int position, bool newGame)
FixHoles();
}
bodyqueslot = 0;
level.bodyqueslot = 0;
// phares 8/10/98: Clear body queue so the corpses from previous games are
// not assumed to be from this one.
for (i = 0; i < BODYQUESIZE; i++)
bodyque[i] = NULL;
for(auto & p : level.bodyque)
p = nullptr;
CreateSections(level.sections);