From 4733b7015cb5843d152c30a6117c7a34b443fd06 Mon Sep 17 00:00:00 2001 From: ThomasChr Date: Mon, 9 Aug 2021 19:30:02 +0200 Subject: [PATCH] move lightsource along with monster when monster does teleport. fixes #1965 --- Source/monster.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/monster.cpp b/Source/monster.cpp index 5035b2c42..bc559f2a8 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -1170,6 +1170,10 @@ void Teleport(int i) dMonster[x][y] = i + 1; monster.position.old = { x, y }; monster._mdir = GetMonsterDirection(monster); + + if (monster.mlid != NO_LIGHT) { + ChangeLightXY(monster.mlid, { x, y }); + } } }