diff --git a/Source/monster.cpp b/Source/monster.cpp index dbc39173b..5780df933 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -1088,11 +1088,7 @@ void StartHeal(Monster &monster) void SyncLightPosition(Monster &monster) { - int lx = (monster.position.offset.deltaX + 2 * monster.position.offset.deltaY) / 8; - int ly = (2 * monster.position.offset.deltaY - monster.position.offset.deltaX) / 8; - - if (monster.lightId != NO_LIGHT) - ChangeLightOffset(monster.lightId, { lx, ly }); + ChangeLightOffset(monster.lightId, monster.position.offset.screenToLight()); } void MonsterIdle(Monster &monster)