mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
GRIM: Save the new sectors shrinking.
This commit is contained in:
parent
860c20a9e1
commit
5e9dd7a425
@ -57,14 +57,13 @@ void Sector::saveState(SaveGame *savedState) const {
|
||||
|
||||
savedState->writeVector3d(_normal);
|
||||
|
||||
// Enable on next save format change.
|
||||
/*savedState->writeFloat(_shrinkRadius);
|
||||
savedState->writeFloat(_shrinkRadius);
|
||||
savedState->writeLESint32(_invalid);
|
||||
if (_shrinkRadius != 0.f && !_invalid) {
|
||||
for (int i = 0; i < _numVertices + 1; ++i) {
|
||||
savedState->writeVector3d(_origVertices[i]);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
bool Sector::restoreState(SaveGame *savedState) {
|
||||
@ -83,8 +82,7 @@ bool Sector::restoreState(SaveGame *savedState) {
|
||||
|
||||
_normal = savedState->readVector3d();
|
||||
|
||||
// Enable on next save format change.
|
||||
/*_shrinkRadius = savedState->readFloat();
|
||||
_shrinkRadius = savedState->readFloat();
|
||||
_invalid = savedState->readLESint32();
|
||||
if (_shrinkRadius != 0.f && !_invalid) {
|
||||
_origVertices = new Graphics::Vector3d[_numVertices + 1];
|
||||
@ -93,7 +91,8 @@ bool Sector::restoreState(SaveGame *savedState) {
|
||||
}
|
||||
} else {
|
||||
_origVertices = NULL;
|
||||
}*/
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user