Serialization fix.

This commit is contained in:
Christian Speckner 2018-02-12 23:20:24 +01:00
parent 2a3bb4329e
commit 01c78842d6
2 changed files with 4 additions and 0 deletions

View File

@ -305,6 +305,7 @@ bool Ball::save(Serializer& out) const
out.putBool(myIsEnabled); out.putBool(myIsEnabled);
out.putBool(myIsSuppressed); out.putBool(myIsSuppressed);
out.putBool(myIsDelaying); out.putBool(myIsDelaying);
out.putBool(myIsVisible);
out.putByte(myHmmClocks); out.putByte(myHmmClocks);
out.putByte(myCounter); out.putByte(myCounter);
@ -347,6 +348,7 @@ bool Ball::load(Serializer& in)
myIsEnabled = in.getBool(); myIsEnabled = in.getBool();
myIsSuppressed = in.getBool(); myIsSuppressed = in.getBool();
myIsDelaying = in.getBool(); myIsDelaying = in.getBool();
myIsVisible = in.getBool();
myHmmClocks = in.getByte(); myHmmClocks = in.getByte();
myCounter = in.getByte(); myCounter = in.getByte();

View File

@ -322,6 +322,7 @@ bool Missile::save(Serializer& out) const
out.putByte(myEffectiveWidth); out.putByte(myEffectiveWidth);
out.putByte(myLastMovementTick); out.putByte(myLastMovementTick);
out.putBool(myIsVisible);
out.putBool(myIsRendering); out.putBool(myIsRendering);
out.putByte(myRenderCounter); out.putByte(myRenderCounter);
@ -364,6 +365,7 @@ bool Missile::load(Serializer& in)
myEffectiveWidth = in.getByte(); myEffectiveWidth = in.getByte();
myLastMovementTick = in.getByte(); myLastMovementTick = in.getByte();
myIsVisible = in.getBool();
myIsRendering = in.getBool(); myIsRendering = in.getBool();
myRenderCounter = in.getByte(); myRenderCounter = in.getByte();