Skip to content

Commit

Permalink
Mount Ceiling Check Fix (#1340)
Browse files Browse the repository at this point in the history
Checked if the char is onhorse or you can't pass under some roofs even on foot (Issue #1329)
  • Loading branch information
DavideRei authored Dec 3, 2024
1 parent 4b5ed07 commit 172bbae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/chars/CCharStatus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 172bbae

Please sign in to comment.