Skip to content
Snippets Groups Projects
Commit 32b07f30 authored by dg's avatar dg
Browse files

Clicking on your spot now spends a turn

git-svn-id: http://svn.net-core.org/repos/t-engine4@1157 51575b47-30f0-44d4-a5cc-537603b46e54
parent 7070ecf6
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ function _M:mouseMove(tmx, tmy, spotHostiles)
self:move(tmx, tmy, true)
else
-- Just spend a turn
if self.x == tmx and self.y == ny then self:move(self.x, self.y) end
if self.x == tmx and self.y == tmy then self:move(self.x, self.y) return end
-- If hostiles, attack!
if (spotHostiles and spotHostiles(self)) or math.floor(core.fov.distance(self.x, self.y, tmx, tmy)) == 1 then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment