Forcibly assign 0 to the additive special color

This commit is contained in:
Kevin Caccamo 2018-12-19 11:32:53 -05:00 committed by Christoph Oelckers
parent 758cd77e55
commit 80bcac48ef
2 changed files with 2 additions and 0 deletions

View file

@ -1096,6 +1096,7 @@ void P_LoadSectors (MapData *map, FMissingTextureTracker &missingtex)
ss->nextsec = -1; //jff 2/26/98 add fields to support locking out
ss->prevsec = -1; // stair retriggering until build completes
memset(ss->SpecialColors, -1, sizeof(ss->SpecialColors));
ss->SpecialColors[sector_t::add] = 0;
ss->SetAlpha(sector_t::floor, 1.);
ss->SetAlpha(sector_t::ceiling, 1.);

View file

@ -1453,6 +1453,7 @@ public:
sec->terrainnum[sector_t::ceiling] = sec->terrainnum[sector_t::floor] = -1;
sec->ibocount = -1;
memset(sec->SpecialColors, -1, sizeof(sec->SpecialColors));
sec->SpecialColors[sector_t::add] = 0;
if (floordrop) sec->Flags = SECF_FLOORDROP;
// killough 3/7/98: end changes