diff options
author | Anubisss <none@none> | 2009-04-07 18:01:22 +0200 |
---|---|---|
committer | Anubisss <none@none> | 2009-04-07 18:01:22 +0200 |
commit | 230b3d41ef5197fb99119da72792984ba192c891 (patch) | |
tree | 91bfdb913c1bd7e4be9e9b5c92c6c0d1c5701065 /src | |
parent | 78d4acb6196269c54b6101bf69c70dc933ea4dfa (diff) |
*Use constant LANG_INSTANCE_RAID_GROUP_ONLY in a message which in CanPlayerEnter().
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Language.h | 2 | ||||
-rw-r--r-- | src/game/MapManager.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Language.h b/src/game/Language.h index 07985f62bd2..51df64227f8 100644 --- a/src/game/Language.h +++ b/src/game/Language.h @@ -842,7 +842,7 @@ enum TrinityStrings LANG_COMMAND_NO_FROZEN_PLAYERS = 5004, LANG_COMMAND_LIST_FREEZE = 5005, LANG_COMMAND_FROZEN_PLAYERS = 5006, - //LANG_INSTANCE_MUST_RAID_GRP = 5007, + LANG_INSTANCE_RAID_GROUP_ONLY = 5007, //LANG_INSTANCE_NOT_AS_GHOST = 5008, LANG_COMMAND_PLAYED_TO_ALL = 5009, // Room for more Trinity strings 5010-9999 diff --git a/src/game/MapManager.cpp b/src/game/MapManager.cpp index e083302e045..061e0252a13 100644 --- a/src/game/MapManager.cpp +++ b/src/game/MapManager.cpp @@ -32,6 +32,7 @@ #include "CellImpl.h" #include "Corpse.h" #include "ObjectMgr.h" +#include "Language.h" #define CLASS_LOCK Trinity::ClassLevelLockable<MapManager, ZThread::Mutex> INSTANTIATE_SINGLETON_2(MapManager, CLASS_LOCK); @@ -165,7 +166,7 @@ bool MapManager::CanPlayerEnter(uint32 mapid, Player* player) { // probably there must be special opcode, because client has this string constant in GlobalStrings.lua // TODO: this is not a good place to send the message - player->GetSession()->SendAreaTriggerMessage(player->GetSession()->GetTrinityString(810), mapName); + player->GetSession()->SendAreaTriggerMessage(player->GetSession()->GetTrinityString(LANG_INSTANCE_RAID_GROUP_ONLY), mapName); sLog.outDebug("MAP: Player '%s' must be in a raid group to enter instance of '%s'", player->GetName(), mapName); return false; } |