fix(hero): round position at turn start

This commit is contained in:
Kazhnuz 2019-08-31 11:18:56 +02:00
parent da3ab42f32
commit b38d478d5a

View file

@ -72,7 +72,9 @@ function Hero:setActive()
core.debug:warning("cbs/character", "move value is nil")
end
self.world.cursor:setGrid(self.x, self.y, "circle", gridsize, 1, self)
self.x, self.y = utils.math.round(self.x), utils.math.round(self.y)
self.startx, self.starty = self.x, self.y
self.world.cursor:set(self.startx, self.starty, "cursorMove")
self:talk("turnstart")