fix(hero): round position at turn start
This commit is contained in:
parent
da3ab42f32
commit
b38d478d5a
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue