mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-16 21:20:01 -04:00
Core: Removed more operator workarounds for ACE_Singleton (missed previously because of inconsistent naming)
--HG-- branch : trunk
This commit is contained in:
@@ -75,7 +75,7 @@ public:
|
||||
*/
|
||||
static bool HandleWpAddCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
sLog.outDebug("DEBUG: HandleWpAddCommand");
|
||||
sLog->outDebug("DEBUG: HandleWpAddCommand");
|
||||
|
||||
// optional
|
||||
char* path_number = NULL;
|
||||
@@ -96,7 +96,7 @@ public:
|
||||
QueryResult result = WorldDatabase.Query("SELECT MAX(id) FROM waypoint_data");
|
||||
uint32 maxpathid = result->Fetch()->GetInt32();
|
||||
pathid = maxpathid+1;
|
||||
sLog.outDebug("DEBUG: HandleWpAddCommand - New path started.");
|
||||
sLog->outDebug("DEBUG: HandleWpAddCommand - New path started.");
|
||||
handler->PSendSysMessage("%s%s|r", "|cff00ff00", "New path started.");
|
||||
}
|
||||
}
|
||||
@@ -108,12 +108,12 @@ public:
|
||||
|
||||
if (!pathid)
|
||||
{
|
||||
sLog.outDebug("DEBUG: HandleWpAddCommand - Current creature haven't loaded path.");
|
||||
sLog->outDebug("DEBUG: HandleWpAddCommand - Current creature haven't loaded path.");
|
||||
handler->PSendSysMessage("%s%s|r", "|cffff33ff", "Current creature haven't loaded path.");
|
||||
return true;
|
||||
}
|
||||
|
||||
sLog.outDebug("DEBUG: HandleWpAddCommand - point == 0");
|
||||
sLog->outDebug("DEBUG: HandleWpAddCommand - point == 0");
|
||||
|
||||
QueryResult result = WorldDatabase.PQuery("SELECT MAX(point) FROM waypoint_data WHERE id = '%u'",pathid);
|
||||
|
||||
@@ -147,7 +147,7 @@ public:
|
||||
|
||||
// Did player provide a path_id?
|
||||
if (!path_number)
|
||||
sLog.outDebug("DEBUG: HandleWpLoadPathCommand - No path number provided");
|
||||
sLog->outDebug("DEBUG: HandleWpLoadPathCommand - No path number provided");
|
||||
|
||||
if (!target)
|
||||
{
|
||||
@@ -452,7 +452,7 @@ public:
|
||||
|
||||
static bool HandleWpModifyCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
sLog.outDebug("DEBUG: HandleWpModifyCommand");
|
||||
sLog->outDebug("DEBUG: HandleWpModifyCommand");
|
||||
|
||||
if (!*args)
|
||||
return false;
|
||||
@@ -491,7 +491,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
sLog.outDebug("DEBUG: HandleWpModifyCommand - User did select an NPC");
|
||||
sLog->outDebug("DEBUG: HandleWpModifyCommand - User did select an NPC");
|
||||
// The visual waypoint
|
||||
Creature* wpCreature = NULL;
|
||||
wpGuid = target->GetGUIDLow();
|
||||
@@ -513,7 +513,7 @@ public:
|
||||
|
||||
if (!result)
|
||||
{
|
||||
sLog.outDebug("DEBUG: HandleWpModifyCommand - No waypoint found - used 'wpguid'");
|
||||
sLog->outDebug("DEBUG: HandleWpModifyCommand - No waypoint found - used 'wpguid'");
|
||||
|
||||
handler->PSendSysMessage(LANG_WAYPOINT_NOTFOUNDSEARCH, target->GetGUIDLow());
|
||||
// Select waypoint number from database
|
||||
@@ -531,7 +531,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
sLog.outDebug("DEBUG: HandleWpModifyCommand - After getting wpGuid");
|
||||
sLog->outDebug("DEBUG: HandleWpModifyCommand - After getting wpGuid");
|
||||
|
||||
do
|
||||
{
|
||||
@@ -546,7 +546,7 @@ public:
|
||||
arg_str = strtok((char*)NULL, " ");
|
||||
}
|
||||
|
||||
sLog.outDebug("DEBUG: HandleWpModifyCommand - Parameters parsed - now execute the command");
|
||||
sLog->outDebug("DEBUG: HandleWpModifyCommand - Parameters parsed - now execute the command");
|
||||
|
||||
// Check for argument
|
||||
if (show != "del" && show != "move" && arg_str == NULL)
|
||||
@@ -644,7 +644,7 @@ public:
|
||||
|
||||
static bool HandleWpShowCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
sLog.outDebug("DEBUG: HandleWpShowCommand");
|
||||
sLog->outDebug("DEBUG: HandleWpShowCommand");
|
||||
|
||||
if (!*args)
|
||||
return false;
|
||||
@@ -656,7 +656,7 @@ public:
|
||||
|
||||
// second arg: GUID (optional, if a creature is selected)
|
||||
char* guid_str = strtok((char*)NULL, " ");
|
||||
sLog.outDebug("DEBUG: HandleWpShowCommand: show_str: %s guid_str: %s", show_str, guid_str);
|
||||
sLog->outDebug("DEBUG: HandleWpShowCommand: show_str: %s guid_str: %s", show_str, guid_str);
|
||||
|
||||
uint32 pathid = 0;
|
||||
Creature* target = handler->getSelectedCreature();
|
||||
@@ -665,7 +665,7 @@ public:
|
||||
|
||||
if (!guid_str)
|
||||
{
|
||||
sLog.outDebug("DEBUG: HandleWpShowCommand: !guid_str");
|
||||
sLog->outDebug("DEBUG: HandleWpShowCommand: !guid_str");
|
||||
// No PathID provided
|
||||
// -> Player must have selected a creature
|
||||
|
||||
@@ -680,7 +680,7 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
sLog.outDebug("|cff00ff00DEBUG: HandleWpShowCommand: PathID provided|r");
|
||||
sLog->outDebug("|cff00ff00DEBUG: HandleWpShowCommand: PathID provided|r");
|
||||
// PathID provided
|
||||
// Warn if player also selected a creature
|
||||
// -> Creature selection is ignored <-
|
||||
@@ -690,12 +690,12 @@ public:
|
||||
pathid = atoi((char*)guid_str);
|
||||
}
|
||||
|
||||
sLog.outDebug("DEBUG: HandleWpShowCommand: danach");
|
||||
sLog->outDebug("DEBUG: HandleWpShowCommand: danach");
|
||||
|
||||
std::string show = show_str;
|
||||
uint32 Maxpoint;
|
||||
|
||||
sLog.outDebug("DEBUG: HandleWpShowCommand: PathID: %u", pathid);
|
||||
sLog->outDebug("DEBUG: HandleWpShowCommand: PathID: %u", pathid);
|
||||
|
||||
//handler->PSendSysMessage("wpshow - show: %s", show);
|
||||
|
||||
@@ -811,7 +811,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
sLog.outDebug("DEBUG: UPDATE waypoint_data SET wpguid = '%u' WHERE id = '%u' and point = '%u'", wpCreature->GetGUIDLow(), pathid, point);
|
||||
sLog->outDebug("DEBUG: UPDATE waypoint_data SET wpguid = '%u' WHERE id = '%u' and point = '%u'", wpCreature->GetGUIDLow(), pathid, point);
|
||||
// set "wpguid" column to the visual waypoint
|
||||
WorldDatabase.PExecute("UPDATE waypoint_data SET wpguid = '%u' WHERE id = '%u' and point = '%u'", wpCreature->GetGUIDLow(), pathid, point);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user