fixed white gaps caused by constant, needless scaling during export

This commit is contained in:
lengstrom 2014-06-28 11:57:22 -04:00
parent a7293a1d48
commit 6304f410c9

View file

@ -2,8 +2,6 @@ function exportSaveState() {
var state = {};
if(gameState == 1 || gameState == -1 || (gameState === 0 && localStorage.getItem('saveState') !== undefined)) {
MainClock.blocks.map(function(i){i.map(function(o){o.distFromHex /= settings.scale})});
blocks.map(function(block){block.distFromHex /= settings.scale;});
state = {
clock: MainClock,
blocks: blocks,
@ -13,6 +11,9 @@ function exportSaveState() {
gdy: gdy,
comboMultiplier:comboMultiplier
};
state.clock.blocks.map(function(i){i.map(function(o){o.distFromHex /= settings.scale})});
state.blocks.map(function(block){block.distFromHex /= settings.scale;});
}
return JSONfn.stringify(state);