- sanitized the 'frozen level' code.
This had two different flags that were checked totally inconsistently, and one was not even saved. Moved everything into a few subfunctions so that these checks do not have to be scattered all over the code.
This commit is contained in:
parent
3721771934
commit
259ae41774
25 changed files with 124 additions and 65 deletions
|
|
@ -965,7 +965,8 @@ void FLevelLocals::Serialize(FSerializer &arc, bool hubload)
|
|||
("impactdecalcount", ImpactDecalCount)
|
||||
("scrolls", Scrolls)
|
||||
("automap", automap)
|
||||
("interpolator", interpolator);
|
||||
("interpolator", interpolator)
|
||||
("frozenstate", frozenstate);
|
||||
|
||||
|
||||
// Hub transitions must keep the current total time
|
||||
|
|
@ -978,6 +979,7 @@ void FLevelLocals::Serialize(FSerializer &arc, bool hubload)
|
|||
sky2texture = skytexture2;
|
||||
R_InitSkyMap();
|
||||
AirControlChanged();
|
||||
bglobal.freeze = !!(frozenstate & 2);
|
||||
}
|
||||
|
||||
Behaviors.SerializeModuleStates(arc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue