mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[10924] Send time diff between Update() calls for object - should help with mob respawn on inactive grids etc. Based on patches by VladimirMangos and cipherCOM. All issues from previous patches should be finally fixed now.
Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
parent
72b1d30a1c
commit
b11820593c
39 changed files with 284 additions and 149 deletions
|
|
@ -875,7 +875,7 @@ void World::SetInitialWorldSettings()
|
|||
srand((unsigned int)time(NULL));
|
||||
|
||||
///- Time server startup
|
||||
uint32 uStartTime = getMSTime();
|
||||
uint32 uStartTime = WorldTimer::getMSTime();
|
||||
|
||||
///- Initialize config settings
|
||||
LoadConfigSettings();
|
||||
|
|
@ -1330,7 +1330,7 @@ void World::SetInitialWorldSettings()
|
|||
|
||||
sLog.outString( "WORLD: World initialized" );
|
||||
|
||||
uint32 uStartInterval = getMSTimeDiff(uStartTime, getMSTime());
|
||||
uint32 uStartInterval = WorldTimer::getMSTimeDiff(uStartTime, WorldTimer::getMSTime());
|
||||
sLog.outString( "SERVER STARTUP TIME: %i minutes %i seconds", uStartInterval / 60000, (uStartInterval % 60000) / 1000 );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue