- SW: remap LIGHT_Tics to the otherwise unused spritetype::detail.

We should not hijack a coordinate for this due to access rights for scripting and potential value ranme issues. Since this value is never loaded from a map this is safe.
This commit is contained in:
Christoph Oelckers 2022-02-03 00:06:40 +01:00
parent 37fda9cf89
commit 680a87085a

View file

@ -47,7 +47,7 @@ inline void LIGHT_DirChange(DSWActor* sp) { sp->spr.extra ^= SPRX_BOOL10; }
int8_t& LIGHT_FloorShade(DSWActor* a) { return a->spr.xoffset; }
int8_t& LIGHT_CeilingShade(DSWActor* a) { return a->spr.yoffset; }
int& LIGHT_Tics(DSWActor* a) { return a->spr.pos.Z; }
int16_t& LIGHT_Tics(DSWActor* a) { return a->spr.detail; }
inline int LIGHT_DiffuseNum(DSWActor* sp) { return SP_TAG3(sp); }
inline int16_t LIGHT_DiffuseMult(DSWActor* sp) { return SP_TAG4((sp)); }