Merge branch 'polyrotate-turnobjs-sync' into 'next'

Sync turnobjs for polyrotate_t thinkers in netgames

See merge request STJr/SRB2!979
This commit is contained in:
Monster Iestyn 2020-06-04 17:20:08 -04:00
commit 71d4eb015a
1 changed files with 2 additions and 0 deletions

View File

@ -2023,6 +2023,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);
}
static void SavePolymoveThinker(const thinker_t *th, const UINT8 type)
@ -3155,6 +3156,7 @@ static inline thinker_t* LoadPolyrotatetThinker(actionf_p1 thinker)
ht->polyObjNum = READINT32(save_p);
ht->speed = READINT32(save_p);
ht->distance = READINT32(save_p);
ht->turnobjs = READUINT8(save_p);
return &ht->thinker;
}