mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
MD2_TID: Don't pass a macro directly to P_SetThingTID
This isn't currently the cause of any issue, but found this future footgun while researching the previous commit. Sometimes functions are turned into macros, which could potentially result in multiple save->p digestions if this was eventually turned into one.
This commit is contained in:
parent
45012dbd6a
commit
f8922c83c8
1 changed files with 4 additions and 1 deletions
|
|
@ -4074,7 +4074,10 @@ static thinker_t* LoadMobjThinker(savebuffer_t *save, actionf_p1 thinker)
|
||||||
if (diff2 & MD2_RENDERFLAGS)
|
if (diff2 & MD2_RENDERFLAGS)
|
||||||
mobj->renderflags = READUINT32(save->p);
|
mobj->renderflags = READUINT32(save->p);
|
||||||
if (diff2 & MD2_TID)
|
if (diff2 & MD2_TID)
|
||||||
P_SetThingTID(mobj, READINT16(save->p));
|
{
|
||||||
|
INT16 tid = READINT16(save->p);
|
||||||
|
P_SetThingTID(mobj, tid);
|
||||||
|
}
|
||||||
if (diff2 & MD2_SPRITESCALE)
|
if (diff2 & MD2_SPRITESCALE)
|
||||||
{
|
{
|
||||||
mobj->spritexscale = READFIXED(save->p);
|
mobj->spritexscale = READFIXED(save->p);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue