From b38d478d5a8bdf8f19e2d822e868ff2ebfb87d9d Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 31 Aug 2019 11:18:56 +0200 Subject: [PATCH] fix(hero): round position at turn start --- sonic-radiance.love/scenes/battlesystem/actors/hero.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sonic-radiance.love/scenes/battlesystem/actors/hero.lua b/sonic-radiance.love/scenes/battlesystem/actors/hero.lua index 13f100e..934505b 100644 --- a/sonic-radiance.love/scenes/battlesystem/actors/hero.lua +++ b/sonic-radiance.love/scenes/battlesystem/actors/hero.lua @@ -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")