aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGround.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-31 16:15:12 -0500
committermegamage <none@none>2009-05-31 16:15:12 -0500
commitf92e8315cf9af3268545dad6c440614a13d06207 (patch)
treeb1f3979f62aed7df1c4d57d0346be046c3482098 /src/game/BattleGround.cpp
parenta36d4fc7aefe9fff8def7bf9ffd6185a8291eb06 (diff)
[7918] Improve portability in work with uint64 string format specifiers and in code literals. Author: VladimirMangos
* Replace platform seelction MaNGOS code for select format descriptor for uint64 by using ACE define. I64FMTD renamed to UI64FMTD for more clear name. * Add new define UI64LIT (base at ACE seelction) for build portables uint64 literals. Please always use UI64LIT(0x00001) instead less portable 0x00001LL --HG-- branch : trunk
Diffstat (limited to 'src/game/BattleGround.cpp')
-rw-r--r--src/game/BattleGround.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp
index a995157786f..118c9769480 100644
--- a/src/game/BattleGround.cpp
+++ b/src/game/BattleGround.cpp
@@ -486,7 +486,7 @@ void BattleGround::SendPacketToAll(WorldPacket *packet)
if (plr)
plr->GetSession()->SendPacket(packet);
else
- sLog.outError("BattleGround: Player " I64FMTD " not found!", itr->first);
+ sLog.outError("BattleGround: Player (GUID: %u) not found!", GUID_LOPART(itr->first));
}
}
@@ -498,7 +498,7 @@ void BattleGround::SendPacketToTeam(uint32 TeamID, WorldPacket *packet, Player *
if (!plr)
{
- sLog.outError("BattleGround: Player " I64FMTD " not found!", itr->first);
+ sLog.outError("BattleGround: Player (GUID: %u) not found!", GUID_LOPART(itr->first));
continue;
}
@@ -530,7 +530,7 @@ void BattleGround::PlaySoundToTeam(uint32 SoundID, uint32 TeamID)
if (!plr)
{
- sLog.outError("BattleGround: Player " I64FMTD " not found!", itr->first);
+ sLog.outError("BattleGround: Player (GUID: %u) not found!", GUID_LOPART(itr->first));
continue;
}
@@ -553,7 +553,7 @@ void BattleGround::CastSpellOnTeam(uint32 SpellID, uint32 TeamID)
if (!plr)
{
- sLog.outError("BattleGround: Player " I64FMTD " not found!", itr->first);
+ sLog.outError("BattleGround: Player (GUID: %u) not found!", GUID_LOPART(itr->first));
continue;
}
@@ -573,7 +573,7 @@ void BattleGround::YellToAll(Creature* creature, const char* text, uint32 langua
Player *plr = objmgr.GetPlayer(itr->first);
if(!plr)
{
- sLog.outError("BattleGround: Player " I64FMTD " not found!", itr->first);
+ sLog.outError("BattleGround: Player " UI64FMTD " not found!", itr->first);
continue;
}
creature->BuildMonsterChat(&data,CHAT_MSG_MONSTER_YELL,text,language,creature->GetName(),itr->first);
@@ -590,7 +590,7 @@ void BattleGround::RewardHonorToTeam(uint32 Honor, uint32 TeamID)
if (!plr)
{
- sLog.outError("BattleGround: Player " I64FMTD " not found!", itr->first);
+ sLog.outError("BattleGround: Player (GUID: %u) not found!", GUID_LOPART(itr->first));
continue;
}
@@ -615,7 +615,7 @@ void BattleGround::RewardReputationToTeam(uint32 faction_id, uint32 Reputation,
if (!plr)
{
- sLog.outError("BattleGround: Player " I64FMTD " not found!", itr->first);
+ sLog.outError("BattleGround: Player (GUID: %u) not found!", GUID_LOPART(itr->first));
continue;
}
@@ -714,7 +714,7 @@ void BattleGround::EndBattleGround(uint32 winner)
else
loser_arena_team->OfflineMemberLost(itr->first, winner_rating);
}
- sLog.outError("BattleGround: Player " I64FMTD " not found!", itr->first);
+ sLog.outError("BattleGround: Player (GUID: %u) not found!", GUID_LOPART(itr->first));
continue;
}