Description:
Make code more comprehensible.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -624,9 +624,8 | |||
|
624 | 624 | #region draw_cursor |
|
625 | 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 | |
|
628 |
|
|
|
629 | && MathUtils.Between(this.mouseGrid.Y, -1, this.simulation.map.MapHeight)) | |
|
627 | if (MathUtils.BetweenInclusive(this.mouseGrid.X, 0, this.simulation.map.MapWidth) | |
|
628 | && MathUtils.BetweenInclusive(this.mouseGrid.Y, 0, this.simulation.map.MapHeight)) | |
|
630 | 629 | { |
|
631 | 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