mirror of https://github.com/stella-emu/stella.git
Serialization fix.
This commit is contained in:
parent
2a3bb4329e
commit
01c78842d6
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue