From 172bbae9fac7efd81a9eec2ff48e5f24b2b061bb Mon Sep 17 00:00:00 2001 From: DavideRei <118212274+DavideRei@users.noreply.github.com> Date: Tue, 3 Dec 2024 07:05:45 +0100 Subject: [PATCH] Mount Ceiling Check Fix (#1340) Checked if the char is onhorse or you can't pass under some roofs even on foot (Issue #1329) --- src/game/chars/CCharStatus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/chars/CCharStatus.cpp b/src/game/chars/CCharStatus.cpp index 32c20165e..f6cff4e63 100644 --- a/src/game/chars/CCharStatus.cpp +++ b/src/game/chars/CCharStatus.cpp @@ -1996,7 +1996,7 @@ bool CChar::CanStandAt(CPointMap *ptDest, const CRegion* pArea, uint64 uiMyMovem if (!fPathfinding && (g_Cfg.m_iDebugFlags & DEBUGF_WALK)) g_Log.EventWarn("GetHeightMount() %hhu, block.m_Top.m_z %hhd, ptDest.m_z %hhd.\n", uiMyHeight, blockingState->m_Top.m_z, ptDest->m_z); - if ((uiMyHeight + ptDest->m_z >= blockingState->m_Top.m_z) && g_Cfg.m_iMountHeight && !IsPriv(PRIV_GM) && !IsPriv(PRIV_ALLMOVE)) + if (IsStatFlag(STATF_ONHORSE) && (uiMyHeight + ptDest->m_z >= blockingState->m_Top.m_z) && g_Cfg.m_iMountHeight && !IsPriv(PRIV_GM) && !IsPriv(PRIV_ALLMOVE)) { if (!fPathfinding) SysMessageDefault(DEFMSG_MSG_MOUNT_CEILING);