Skip to content

Commit

Permalink
Fixed Clicking Outside Bounds Still Activating Tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Hawkbat committed Mar 18, 2017
1 parent 34256f0 commit 6c2b573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/Tool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ void Update()
cursor.gameObject.SetActive(false);
}
}
if (toolHeld)
if (toolHeld && cursor.gameObject.activeSelf)
{
byte currentColor = (byte)Edit.use.tile.GetPalette().GetIndex();
if (Edit.use.tool == Edit.Tool.Place)
Expand Down

0 comments on commit 6c2b573

Please sign in to comment.