fix ambient heat being reset when creating saves

This commit is contained in:
jacob1 2017-05-06 23:57:16 -04:00
parent e1d8e814a5
commit abf60508cd

View File

@ -305,6 +305,7 @@ GameSave * Simulation::Save(int fullX, int fullY, int fullX2, int fullY2)
newSave->velocityX[saveBlockY][saveBlockX] = vx[saveBlockY+blockY][saveBlockX+blockX]; newSave->velocityX[saveBlockY][saveBlockX] = vx[saveBlockY+blockY][saveBlockX+blockX];
newSave->velocityY[saveBlockY][saveBlockX] = vy[saveBlockY+blockY][saveBlockX+blockX]; newSave->velocityY[saveBlockY][saveBlockX] = vy[saveBlockY+blockY][saveBlockX+blockX];
newSave->ambientHeat[saveBlockY][saveBlockX] = hv[saveBlockY+blockY][saveBlockX+blockX]; newSave->ambientHeat[saveBlockY][saveBlockX] = hv[saveBlockY+blockY][saveBlockX+blockX];
newSave->hasAmbientHeat = true;
} }
} }