From a67d7c9afdd0b2144cee24d318917dfd57eff1d8 Mon Sep 17 00:00:00 2001 From: click Date: Thu, 7 Oct 2010 14:00:52 +0200 Subject: Copyright header updates - part 3... (and some whitespace cleanups) --HG-- branch : trunk --- src/server/game/Texts/CreatureTextMgr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/game/Texts') diff --git a/src/server/game/Texts/CreatureTextMgr.cpp b/src/server/game/Texts/CreatureTextMgr.cpp index d56558fc052..d122219a610 100755 --- a/src/server/game/Texts/CreatureTextMgr.cpp +++ b/src/server/game/Texts/CreatureTextMgr.cpp @@ -168,7 +168,7 @@ uint32 CreatureTextMgr::SendChat(Creature* source, uint8 textGroup, uint64 whisp uint32 r = urand(0, 100); offset++; if (r <= chance) - break; + break; } } uint32 pos = 0; @@ -304,7 +304,7 @@ void CreatureTextMgr::BuildMonsterChat(WorldPacket *data, WorldObject* source, C *data << (uint32)(strlen(source->GetName())+1); *data << source->GetName(); *data << (uint64)whisperGuid; // Unit Target - if (whisperGuid && !IS_PLAYER_GUID(whisperGuid)) //can only whisper players + if (whisperGuid && !IS_PLAYER_GUID(whisperGuid)) //can only whisper players { sLog.outError("CreatureTextMgr: WorldObject(%s) TypeId %u GuidLow %u sent WHISPER msg to Non-Player target. Ignoring.",source->GetName(), uint32(source->GetTypeId()), source->GetGUIDLow()); return; @@ -322,7 +322,7 @@ void CreatureTextMgr::SendChatPacket(WorldPacket *data, WorldObject* source, Cha return; float dist = sWorld.getFloatConfig(CONFIG_LISTEN_RANGE_SAY); - + switch (msgtype) { case CHAT_TYPE_YELL: -- cgit v1.2.3