mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Worldserver: Move the Realm instance into the game library
This commit is contained in:
@@ -3473,6 +3473,8 @@ void World::RemoveOldCorpses()
|
||||
m_timers[WUPDATE_CORPSES].SetCurrent(m_timers[WUPDATE_CORPSES].GetInterval());
|
||||
}
|
||||
|
||||
Realm realm;
|
||||
|
||||
uint32 GetVirtualRealmAddress()
|
||||
{
|
||||
return uint32(realm.Id.Region) << 24 | uint32(realm.Id.Site) << 16 | realm.Id.Realm;
|
||||
|
||||
@@ -898,5 +898,6 @@ extern Realm realm;
|
||||
uint32 GetVirtualRealmAddress();
|
||||
|
||||
#define sWorld World::instance()
|
||||
|
||||
#endif
|
||||
/// @}
|
||||
|
||||
@@ -80,8 +80,6 @@ uint32 _worldLoopCounter(0);
|
||||
uint32 _lastChangeMsTime(0);
|
||||
uint32 _maxCoreStuckTimeInMs(0);
|
||||
|
||||
Realm realm;
|
||||
|
||||
void SignalHandler(const boost::system::error_code& error, int signalNumber);
|
||||
void FreezeDetectorHandler(const boost::system::error_code& error);
|
||||
AsyncAcceptor* StartRaSocketAcceptor(boost::asio::io_service& ioService);
|
||||
|
||||
Reference in New Issue
Block a user