Description:
Finally fix overflow issue for good.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r611:1bbd6b30ac60 -

@@ -613,8 +613,8
613 613 //Unfortunately this is tileset dependent and pretty awkward to type out :(
614 614 var northwest = (x != 0 && (cells[x-1][y].Status == CellStatus.Water));
615 615 var northeast = (y != 0 && (cells[x][y-1].Status == CellStatus.Water));
616 var southwest = cells[x][y+1].Status == CellStatus.Water;
617 var southeast = cells[x+1][y].Status == CellStatus.Water;
616 var southwest = (y < (this.simulation.map.MapHeight-1) && cells[x][y+1].Status == CellStatus.Water);
617 var southeast = (x < (this.simulation.map.MapWidth-1) && cells[x+1][y].Status == CellStatus.Water);
618 618
619 619
620 620 if (northwest && northeast && southwest && southeast) {
You need to be logged in to leave comments. Login now