- Duke: must serialize SB_CENTERVIEW (but no other bits.)

This commit is contained in:
Christoph Oelckers 2020-09-23 17:01:50 +02:00
parent f4fff5ee30
commit a6c45a8e52

View file

@ -280,6 +280,7 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, player_struct& w,
("moto_on_mud", w.moto_on_mud)
// new stuff
("crouch_toggle", w.crouch_toggle)
("actions", w.sync.actions)
.EndObject();
w.invdisptime = 0;
@ -298,6 +299,7 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, player_struct& w,
w.ohard_landing = w.hard_landing;
w.horizAdjust = 0;
w.angAdjust = 0;
w.sync.actions &= SB_CENTERVIEW; // this is the only bit we need to preserve.
}
return arc;
}