Browse Source

move lightsource along with monster when monster does teleport. fixes #1965

pull/2552/head
ThomasChr 5 years ago committed by Anders Jenbo
parent
commit
4733b7015c
  1. 4
      Source/monster.cpp

4
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 });
}
}
}

Loading…
Cancel
Save