From 40dff8ac1765c460b2330be42a54c41c7a8aff4a Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Wed, 11 Sep 2024 16:08:26 +0000 Subject: [PATCH] Fix town visit via Town Portal not generating town visit query --- server/CGameHandler.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index 13cf68c43..eaff4edc7 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -973,12 +973,11 @@ bool CGameHandler::moveHero(ObjectInstanceID hid, int3 dst, EMovementMode moveme doMove(TryMoveHero::TELEPORTATION, guardsCheck, DONT_VISIT_DEST, LEAVING_TILE); // visit town for town portal \ castle gates - // do not use generic visitObjectOnTile to avoid double-teleporting - // if this moveHero call was triggered by teleporter + // do not visit any other objects, e.g. monoliths to avoid double-teleporting if (objectToVisit) { if (CGTownInstance * town = dynamic_cast(objectToVisit)) - town->onHeroVisit(h); + objectVisited(town, h); } return true;