Core/Misc: Fix resting zone in inn or tavern, reduce the area resting is active
Closes #7516
This commit is contained in:
1 parent
41a62da6b5
commit
1d05d2d4fa
1 file changed
+1
-2
@@ -7507,8 +7507,7 @@ void Player::UpdateZone(uint32 newZone, uint32 newArea)
|
||||
if (GetRestType() == REST_TYPE_IN_TAVERN) // Still inside a tavern or has recently left
|
||||
{
|
||||
// Remove rest state if we have recently left a tavern.
|
||||
// Why is 40 yd hardcoded?
|
||||
if (GetMapId() != GetInnPosMapId() || GetExactDist(GetInnPosX(), GetInnPosY(), GetInnPosZ()) > 40.0f)
|
||||
if (GetMapId() != GetInnPosMapId() || GetExactDist(GetInnPosX(), GetInnPosY(), GetInnPosZ()) > 1.0f)
|
||||
{
|
||||
RemoveFlag(PLAYER_FLAGS, PLAYER_FLAGS_RESTING);
|
||||
SetRestType(REST_TYPE_NO);
|
||||
|
||||
Reference in new issue
Block a user