- Instead of setting the default skybox in every sector without an explicit skybox set, set it

once in the level struct and then use that for sectors with a NULL skybox. This fixes zpack's
  E2M3 so that when it removes its sector stacks, you will get the default skybox in their
  place, since stacked sectors and skyboxes use the same pointers in a sector.

SVN r4224 (trunk)
This commit is contained in:
Randy Heit 2013-04-21 02:22:37 +00:00
commit 92d54ca0fc
5 changed files with 23 additions and 18 deletions

View file

@ -307,6 +307,7 @@ static void MarkRoot()
DThinker::MarkRoots();
FCanvasTextureInfo::Mark();
Mark(DACSThinker::ActiveThinker);
Mark(level.DefaultSkybox);
// Mark dead bodies.
for (i = 0; i < BODYQUESIZE; ++i)
{