From 1b96c8b40f77f726354b2ddbc4bbfb0cf1e379e8 Mon Sep 17 00:00:00 2001 From: Eidolon Date: Thu, 27 Oct 2022 18:12:05 -0500 Subject: [PATCH] Net-save/load turnobjs field on rotating polyobjs Fixes desyncs with rotating polyobjs --- src/p_saveg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/p_saveg.c b/src/p_saveg.c index e3bc51d0..f553ddf6 100644 --- a/src/p_saveg.c +++ b/src/p_saveg.c @@ -1564,6 +1564,7 @@ static inline void SavePolyrotatetThinker(const thinker_t *th, const UINT8 type) WRITEINT32(save_p, ht->polyObjNum); WRITEINT32(save_p, ht->speed); 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->speed = READINT32(save_p); ht->distance = READINT32(save_p); + ht->turnobjs = READUINT8(save_p); P_AddThinker(&ht->thinker); }