summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-10-11 12:11:25 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-10-11 12:11:25 +0200
commit91a274da2b63a194ed2cfeea8389ebedf3b0b8d4 (patch)
tree58dd905de7ac73c0d90ff8229bf782cbfe4f894b /src
parentsmall fix (diff)
downloadre3-91a274da2b63a194ed2cfeea8389ebedf3b0b8d4.tar
re3-91a274da2b63a194ed2cfeea8389ebedf3b0b8d4.tar.gz
re3-91a274da2b63a194ed2cfeea8389ebedf3b0b8d4.tar.bz2
re3-91a274da2b63a194ed2cfeea8389ebedf3b0b8d4.tar.lz
re3-91a274da2b63a194ed2cfeea8389ebedf3b0b8d4.tar.xz
re3-91a274da2b63a194ed2cfeea8389ebedf3b0b8d4.tar.zst
re3-91a274da2b63a194ed2cfeea8389ebedf3b0b8d4.zip
Diffstat (limited to 'src')
-rw-r--r--src/control/Garages.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp
index 73992bcb..44a961c9 100644
--- a/src/control/Garages.cpp
+++ b/src/control/Garages.cpp
@@ -2144,7 +2144,7 @@ void CGarages::SetAllDoorsBackToOriginalHeight()
void CGarages::Save(uint8 * buf, uint32 * size)
{
-INITSAVEBUF
+//INITSAVEBUF
*size = 7876; // for some reason it's not actual size again
//*size = (6 * sizeof(uint32) + TOTAL_COLLECTCARS_GARAGES * sizeof(*CarTypesCollected) + sizeof(uint32) + TOTAL_HIDEOUT_GARAGES * NUM_GARAGE_STORED_CARS * sizeof(CStoredCar) + NUM_GARAGES * sizeof(CGarage));
CloseHideOutGaragesBeforeSave();
@@ -2164,7 +2164,7 @@ INITSAVEBUF
}
for (int i = 0; i < NUM_GARAGES; i++)
WriteSaveBuf(buf, aGarages[i]);
-VALIDATESAVEBUF(*size);
+//VALIDATESAVEBUF(*size);
}
const CStoredCar &CStoredCar::operator=(const CStoredCar & other)
@@ -2188,7 +2188,7 @@ const CStoredCar &CStoredCar::operator=(const CStoredCar & other)
void CGarages::Load(uint8* buf, uint32 size)
{
-INITSAVEBUF
+//INITSAVEBUF
assert(size = 7876);
//assert(size == (6 * sizeof(uint32) + TOTAL_COLLECTCARS_GARAGES * sizeof(*CarTypesCollected) + sizeof(uint32) + TOTAL_HIDEOUT_GARAGES * NUM_GARAGE_STORED_CARS * sizeof(CStoredCar) + NUM_GARAGES * sizeof(CGarage)));
CloseHideOutGaragesBeforeSave();
@@ -2218,7 +2218,7 @@ INITSAVEBUF
else
aGarages[i].UpdateDoorsHeight();
}
-VALIDATESAVEBUF(size);
+//VALIDATESAVEBUF(size);
MessageEndTime = 0;
bCamShouldBeOutisde = false;