- removed some leftover data in sector_t.

This commit is contained in:
Christoph Oelckers 2018-05-19 08:25:26 +02:00
parent ab3bacdaf5
commit 5ec47d8b4f

View file

@ -979,6 +979,12 @@ public:
double CenterFloor() const { return floorplane.ZatPoint(centerspot); }
double CenterCeiling() const { return ceilingplane.ZatPoint(centerspot); }
void CopyColors(sector_t *other)
{
memcpy(SpecialColors, other->SpecialColors, sizeof(SpecialColors));
Colormap = other->Colormap;
}
// [RH] store floor and ceiling planes instead of heights
secplane_t floorplane, ceilingplane;
@ -986,26 +992,6 @@ public:
PalEntry SpecialColors[5];
FColormap Colormap;
private:
FDynamicColormap *_ColorMap; // [RH] Per-sector colormap
public:
// just a helper for refactoring
FDynamicColormap *GetColorMap()
{
return _ColorMap;
}
void CopyColors(sector_t *other)
{
memcpy(SpecialColors, other->SpecialColors, sizeof(SpecialColors));
Colormap = other->Colormap;
_ColorMap = other->_ColorMap;
}
TObjPtr<AActor*> SoundTarget;
short special;