Core/Misc: Port all the refactors sneaked in master to 3.3.5 include cleanup port
This commit is contained in:
@@ -137,6 +137,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// Dump camera locations
|
||||
if (std::vector<FlyByCamera> const* flyByCameras = GetFlyByCameras(cineSeq->Camera[0]))
|
||||
{
|
||||
@@ -145,7 +146,7 @@ public:
|
||||
for (FlyByCamera const& cam : *flyByCameras)
|
||||
{
|
||||
handler->PSendSysMessage("%02u - %7ums [%s (%f degrees)]", count, cam.timeStamp, cam.locations.ToString().c_str(), cam.locations.GetOrientation() * (180 / M_PI));
|
||||
count++;
|
||||
++count;
|
||||
}
|
||||
handler->PSendSysMessage(SZFMTD " waypoints dumped", flyByCameras->size());
|
||||
}
|
||||
@@ -274,7 +275,6 @@ public:
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool HandleDebugSendPlayerChoiceCommand(ChatHandler* handler, char const* args)
|
||||
{
|
||||
if (!*args)
|
||||
@@ -981,7 +981,7 @@ public:
|
||||
|
||||
static bool HandleDebugSendLargePacketCommand(ChatHandler* handler, char const* /*args*/)
|
||||
{
|
||||
const char* stuffingString = "This is a dummy string to push the packet's size beyond 128000 bytes. ";
|
||||
char const* stuffingString = "This is a dummy string to push the packet's size beyond 128000 bytes. ";
|
||||
std::ostringstream ss;
|
||||
while (ss.str().size() < 128000)
|
||||
ss << stuffingString;
|
||||
@@ -1312,13 +1312,13 @@ public:
|
||||
if (stricmp(args, "linked"))
|
||||
{
|
||||
if (Battleground* bg = player->GetBattleground())
|
||||
nearestLoc = bg->GetClosestGraveYard(player);
|
||||
nearestLoc = bg->GetClosestGraveyard(player);
|
||||
else
|
||||
{
|
||||
if (Battlefield* bf = sBattlefieldMgr->GetBattlefieldToZoneId(player->GetZoneId()))
|
||||
nearestLoc = bf->GetClosestGraveYard(player);
|
||||
nearestLoc = bf->GetClosestGraveyard(player);
|
||||
else
|
||||
nearestLoc = sObjectMgr->GetClosestGraveYard(*player, player->GetTeam(), player);
|
||||
nearestLoc = sObjectMgr->GetClosestGraveyard(*player, player->GetTeam(), player);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user