Core: Updated to 10.2.5
Port From (https://github.com/TrinityCore/TrinityCore/commit/a4a4d010a0e329d4dbd82c0be5feab1fc06c8834)
This commit is contained in:
@@ -690,14 +690,9 @@ namespace Game.Chat
|
||||
return false;
|
||||
}
|
||||
|
||||
uint offset = (uint)(area.AreaBit / ActivePlayerData.ExploredZonesBits);
|
||||
if (offset >= PlayerConst.ExploredZonesSize)
|
||||
{
|
||||
handler.SendSysMessage(CypherStrings.BadValue);
|
||||
return false;
|
||||
}
|
||||
int offset = (area.AreaBit / PlayerConst.ExploredZonesBits);
|
||||
|
||||
uint val = 1u << (area.AreaBit % ActivePlayerData.ExploredZonesBits);
|
||||
uint val = 1u << (area.AreaBit % PlayerConst.ExploredZonesBits);
|
||||
playerTarget.RemoveExploredZones(offset, val);
|
||||
|
||||
handler.SendSysMessage(CypherStrings.UnexploreArea);
|
||||
@@ -1670,14 +1665,9 @@ namespace Game.Chat
|
||||
return false;
|
||||
}
|
||||
|
||||
uint offset = (uint)(area.AreaBit / ActivePlayerData.ExploredZonesBits);
|
||||
if (offset >= PlayerConst.ExploredZonesSize)
|
||||
{
|
||||
handler.SendSysMessage(CypherStrings.BadValue);
|
||||
return false;
|
||||
}
|
||||
int offset = (area.AreaBit / PlayerConst.ExploredZonesBits);
|
||||
|
||||
ulong val = 1ul << (area.AreaBit % ActivePlayerData.ExploredZonesBits);
|
||||
ulong val = 1ul << (area.AreaBit % PlayerConst.ExploredZonesBits);
|
||||
playerTarget.AddExploredZones(offset, val);
|
||||
|
||||
handler.SendSysMessage(CypherStrings.ExploreArea);
|
||||
|
||||
Reference in New Issue
Block a user