Core/Misc: Fixed build without pch

This commit is contained in:
Shauren
2014-09-14 17:29:13 +02:00
parent 2a1a294383
commit d72c4085de
12 changed files with 16 additions and 5 deletions

View File

@@ -26,6 +26,7 @@
#include "DatabaseEnv.h"
#include "DBCEnums.h"
#include "DBCStores.h"
#include "ObjectGuid.h"
class Unit;
class Player;

View File

@@ -20,6 +20,7 @@
#define TRINITYCORE_ARENATEAM_H
#include "QueryResult.h"
#include "ObjectGuid.h"
#include <list>
#include <map>

View File

@@ -19,6 +19,7 @@
#define TRINITY_BATTLEGROUND_SCORE_H
#include "WorldPacket.h"
#include "ObjectGuid.h"
enum ScoreType
{

View File

@@ -21,6 +21,7 @@
#include "Common.h"
#include "DatabaseEnv.h"
#include "WorldPacket.h"
#include "ObjectGuid.h"
enum CalendarMailAnswers
{

View File

@@ -23,6 +23,7 @@
#include "SharedDefines.h"
#include "LinkedReference/Reference.h"
#include "UnitEvents.h"
#include "ObjectGuid.h"
#include <list>

View File

@@ -19,6 +19,7 @@
#define _LFG_H
#include "Common.h"
#include "ObjectGuid.h"
namespace lfg
{

View File

@@ -20,6 +20,7 @@
#define TRINITYCORE_GOSSIP_H
#include "Common.h"
#include "ObjectGuid.h"
#include "QuestDef.h"
#include "NPCHandler.h"

View File

@@ -48,7 +48,7 @@ char const* ObjectGuid::GetTypeName(HighGuid high)
std::string ObjectGuid::ToString() const
{
std::ostringstream str;
str << "GUID Full: 0x" << std::hex << std::setw(16) << std::setfill('0') << m_guid;
str << "GUID Full: 0x" << std::hex << std::setw(16) << std::setfill('0') << m_guid << std::dec;
str << " Type: " << GetTypeName();
if (HasEntry())
str << (IsPet() ? " Pet number: " : " Entry: ") << GetEntry() << " ";

View File

@@ -20,6 +20,7 @@
#define __UPDATEDATA_H
#include "ByteBuffer.h"
#include "ObjectGuid.h"
#include <set>
class WorldPacket;

View File

@@ -24,7 +24,7 @@
#include "RefManager.h"
#include "SharedDefines.h"
#include "ConditionMgr.h"
#include "ObjectGuid.h"
#include <map>
#include <vector>
#include <list>

View File

@@ -30,6 +30,7 @@
#include "MapRefManager.h"
#include "DynamicTree.h"
#include "GameObjectModel.h"
#include "ObjectGuid.h"
#include <bitset>
#include <list>

View File

@@ -172,9 +172,11 @@ std::string WorldSession::GetPlayerInfo() const
{
std::ostringstream ss;
ss << "[Player: " << GetPlayerName()
<< " (Guid: " << (_player != NULL ? _player->GetGUID().ToString() : "")
<< ", Account: " << GetAccountId() << ")]";
ss << "[Player: " << GetPlayerName() << " (";
if (_player != NULL)
ss << _player->GetGUID().ToString() << ", ";
ss << "Account: " << GetAccountId() << ")]";
return ss.str();
}