Net-save/load turnobjs field on rotating polyobjs

Fixes desyncs with rotating polyobjs
This commit is contained in:
Eidolon 2022-10-27 18:12:05 -05:00
parent 33989f56e5
commit 1b96c8b40f

View file

@ -1564,6 +1564,7 @@ static inline void SavePolyrotatetThinker(const thinker_t *th, const UINT8 type)
WRITEINT32(save_p, ht->polyObjNum); WRITEINT32(save_p, ht->polyObjNum);
WRITEINT32(save_p, ht->speed); WRITEINT32(save_p, ht->speed);
WRITEINT32(save_p, ht->distance); WRITEINT32(save_p, ht->distance);
WRITEUINT8(save_p, ht->turnobjs);
} }
// //
@ -2533,6 +2534,7 @@ static inline void LoadPolyrotatetThinker(actionf_p1 thinker)
ht->polyObjNum = READINT32(save_p); ht->polyObjNum = READINT32(save_p);
ht->speed = READINT32(save_p); ht->speed = READINT32(save_p);
ht->distance = READINT32(save_p); ht->distance = READINT32(save_p);
ht->turnobjs = READUINT8(save_p);
P_AddThinker(&ht->thinker); P_AddThinker(&ht->thinker);
} }