@@ -805,11 +805,6 @@ Player::Player (WorldSession *session): Unit(), m_achievementMgr(this), m_reputa
|
||||
m_summon_y = 0.0f;
|
||||
m_summon_z = 0.0f;
|
||||
|
||||
//Default movement to run mode
|
||||
//m_unit_movement_flags = 0;
|
||||
|
||||
m_AreaID = 0;
|
||||
|
||||
m_mover = this;
|
||||
m_movedPlayer = this;
|
||||
m_seer = this;
|
||||
@@ -6770,11 +6765,6 @@ void Player::CheckAreaExploreAndOutdoor()
|
||||
if (isInFlight())
|
||||
return;
|
||||
|
||||
if (!m_AreaID)
|
||||
m_AreaID = GetAreaId();
|
||||
if (m_AreaID != GetAreaId())
|
||||
m_AreaID = GetAreaId();
|
||||
|
||||
bool isOutdoor;
|
||||
uint16 areaFlag = GetBaseMap()->GetAreaFlag(GetPositionX(),GetPositionY(),GetPositionZ(), &isOutdoor);
|
||||
|
||||
|
||||
@@ -2429,7 +2429,6 @@ class Player : public Unit, public GridObject<Player>
|
||||
bool isDebugAreaTriggers;
|
||||
|
||||
protected:
|
||||
uint32 m_AreaID;
|
||||
uint32 m_regenTimerCount;
|
||||
float m_powerFraction[MAX_POWERS];
|
||||
uint32 m_contestedPvPTimer;
|
||||
|
||||
@@ -252,9 +252,6 @@ int Master::Run()
|
||||
soap_thread = new ACE_Based::Thread(runnable);
|
||||
}
|
||||
|
||||
uint32 realCurrTime, realPrevTime;
|
||||
realCurrTime = realPrevTime = getMSTime();
|
||||
|
||||
///- Start up freeze catcher thread
|
||||
if (uint32 freeze_delay = sConfig->GetIntDefault("MaxCoreStuckTime", 0))
|
||||
{
|
||||
@@ -385,13 +382,13 @@ bool Master::_StartDB()
|
||||
}
|
||||
|
||||
synch_threads = sConfig->GetIntDefault("WorldDatabase.SynchThreads", 1);
|
||||
|
||||
///- Initialise the world database
|
||||
if (!WorldDatabase.Open(dbstring, async_threads, synch_threads))
|
||||
{
|
||||
sLog->outError("Cannot connect to world database %s", dbstring.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
///- Get character database info from configuration file
|
||||
dbstring = sConfig->GetStringDefault("CharacterDatabaseInfo", "");
|
||||
if (dbstring.empty())
|
||||
@@ -434,13 +431,13 @@ bool Master::_StartDB()
|
||||
}
|
||||
|
||||
synch_threads = sConfig->GetIntDefault("LoginDatabase.SynchThreads", 1);
|
||||
|
||||
///- Initialise the login database
|
||||
if (!LoginDatabase.Open(dbstring, async_threads, synch_threads))
|
||||
{
|
||||
sLog->outError("Cannot connect to login database %s", dbstring.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
///- Get the realm Id from the configuration file
|
||||
realmID = sConfig->GetIntDefault("RealmID", 0);
|
||||
if (!realmID)
|
||||
|
||||
Reference in New Issue
Block a user