summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-28 01:23:21 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-28 01:23:21 (GMT)
commitaa774771a048200976211ac6ce8da5e7e29a7ce7 (patch)
treee7ca088297d3a6f4f294617f1dfd4e44a9caf383 /src/simulation/Simulation.cpp
parent385552ceab18ed968f12f6612159452510415048 (diff)
downloadpowder-aa774771a048200976211ac6ce8da5e7e29a7ce7.zip
powder-aa774771a048200976211ac6ce8da5e7e29a7ce7.tar.gz
Collapse gamesave to save space in memory
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index 88457c3..dc413f3 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -21,6 +21,7 @@ int Simulation::Load(int fullX, int fullY, GameSave * save)
int blockX, blockY, x, y, r;
if(!save) return 0;
+ save->Expand();
//Align to blockMap
blockX = fullX/CELL;