From 874fa6b8d344ee1b60ab616f71e5bb969aa94812 Mon Sep 17 00:00:00 2001 From: staphen Date: Fri, 12 May 2023 21:33:36 -0400 Subject: [PATCH] Fix monster light offset after walk animation ends --- Source/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/monster.cpp b/Source/monster.cpp index 1086704bf..224a69ab0 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -1016,7 +1016,7 @@ void SyncLightPosition(Monster &monster) if (monster.lightId == NO_LIGHT) return; - const WorldTileDisplacement offset = monster.position.CalculateWalkingOffset(monster.direction, monster.animInfo); + const WorldTileDisplacement offset = monster.isWalking() ? monster.position.CalculateWalkingOffset(monster.direction, monster.animInfo) : WorldTileDisplacement {}; ChangeLightOffset(monster.lightId, offset.screenToLight()); }