Fixed blocks starting behind hexagon on load save state
This commit is contained in:
parent
05246608ce
commit
0ce3056879
1 changed files with 3 additions and 1 deletions
|
@ -156,7 +156,9 @@ function init() {
|
|||
MainClock = saveState.clock || new Clock(settings.hexWidth);
|
||||
for(var i=0; i<MainClock.blocks.length; i++) {
|
||||
for(var j=0; j<MainClock.blocks[i].length; j++) {
|
||||
MainClock.blocks[i][j].settled = 0;
|
||||
var block = MainClock.blocks[i][j];
|
||||
block.distFromHex = 2 * MainClock.sideLength / Math.sqrt(3) + (j-1) * block.height;
|
||||
block.settled = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue