- account for stupid GCC limitation.

This commit is contained in:
Christoph Oelckers 2022-09-01 14:15:47 +02:00
parent 04d20a52c3
commit 463e1a8047

View file

@ -292,6 +292,8 @@ struct sectortype
uint8_t portalflags; uint8_t portalflags;
int8_t portalnum; int8_t portalnum;
DAngle angle; // this is SW only. GCC is stupid and does not allow it inside an anonmyous struct.
// Game specific extensions. Due to how sectors are used they need to be defined in the global class. :( // Game specific extensions. Due to how sectors are used they need to be defined in the global class. :(
union union
{ {
@ -329,7 +331,6 @@ struct sectortype
int flags; int flags;
int depth_fixed; int depth_fixed;
short stag; // ST? tag number - for certain things it helps to know it short stag; // ST? tag number - for certain things it helps to know it
DAngle angle;
short height; short height;
short speed; short speed;
short damage; short damage;