mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- removed some leftover data in sector_t.
This commit is contained in:
parent
ab3bacdaf5
commit
5ec47d8b4f
1 changed files with 6 additions and 20 deletions
26
src/r_defs.h
26
src/r_defs.h
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue