Description:
Make code more comprehensible.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r191:c85bdc15caa1 -

@@ -624,9 +624,8
624 #region draw_cursor
624 #region draw_cursor
625 //drawTileAt((int)this.mouseGrid.X, (int)this.mouseGrid.Y, 2, 1, 0.85f); //between tiles and gridlines
625 //drawTileAt((int)this.mouseGrid.X, (int)this.mouseGrid.Y, 2, 1, 0.85f); //between tiles and gridlines
626
626
627 //TODO figure out why it has to be -1
627 if (MathUtils.BetweenInclusive(this.mouseGrid.X, 0, this.simulation.map.MapWidth)
628 if (MathUtils.Between(this.mouseGrid.X, -1, this.simulation.map.MapWidth)
628 && MathUtils.BetweenInclusive(this.mouseGrid.Y, 0, this.simulation.map.MapHeight))
629 && MathUtils.Between(this.mouseGrid.Y, -1, this.simulation.map.MapHeight))
630 {
629 {
631 Tile.OutlineSquare(batch, this.mouseGrid.X, this.mouseGrid.Y, Color.Yellow, 1);
630 Tile.OutlineSquare(batch, this.mouseGrid.X, this.mouseGrid.Y, Color.Yellow, 1);
632 }
631 }
You need to be logged in to leave comments. Login now