aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level2.cpp
diff options
context:
space:
mode:
authorvisagalis <none@none>2008-11-14 17:03:03 -0600
committervisagalis <none@none>2008-11-14 17:03:03 -0600
commitbfa9e7516177af9e13391a09d4e1356c74a4c2ba (patch)
treeb4b4c98fac8e547db4a165e5e8cc0fb03c21c005 /src/game/Level2.cpp
parentd1e759479b3f31cccc270e40d3e6af13204eb627 (diff)
[svn] *** Source: MaNGOS ***
* Implement localization of creature/gameobject name that say/yell. Author: evilstar (rewrited by: Vladimir) * Fix auth login queue. Author: Derex * Allowed switching INVTYPE_HOLDABLE items during combat, used correct spells for triggering global cooldown at weapon switch. Author: mobel/simak * Fixed some format arg type/value pairs. Other warnings. Author: Vladimir * [238_world.sql] Allow have team dependent graveyards at entrance map for instances. Author: Vladimir NOTE: Entrance map graveyards selected by same way as local (by distance from entrance) Until DB support will work in old way base at current DB data. --HG-- branch : trunk
Diffstat (limited to 'src/game/Level2.cpp')
-rw-r--r--src/game/Level2.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp
index 62b68a04cc8..643a5b6f819 100644
--- a/src/game/Level2.cpp
+++ b/src/game/Level2.cpp
@@ -2822,12 +2822,7 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
std::string show = show_str;
uint32 Maxpoint;
- sLog.outDebug("DEBUG: HandleWpShowCommand: lowguid: %u", lowguid);
-
- sLog.outDebug("DEBUG: HandleWpShowCommand: Habe creature: %ld", target );
-
- sLog.outDebug("DEBUG: HandleWpShowCommand: wpshow - show: %s", show_str);
- //PSendSysMessage("wpshow - show: %s", show);
+ sLog.outDebug("DEBUG: HandleWpShowCommand: lowguid: %u show: %s", lowguid, show_str);
// Show info for the selected waypoint
if(show == "info")
@@ -2848,7 +2843,7 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
QueryResult *result =
WorldDatabase.PQuery( "SELECT id, point, waittime, emote, spell, text1, text2, text3, text4, text5, model1, model2 FROM creature_movement WHERE wpguid = %u",
- target->GetGUID() );
+ target->GetGUIDLow() );
if(!result)
{
// Since we compare float values, we have to deal with