From fcfbdee76d3eb4f51a541900f87482368da6bf70 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sat, 17 Aug 2013 23:45:58 +0200 Subject: [PATCH] The server Tick thread ticks PluginManager. This fixes #104 and #102 --- source/Server.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/Server.cpp b/source/Server.cpp index fad562973..c43ee83d2 100644 --- a/source/Server.cpp +++ b/source/Server.cpp @@ -355,8 +355,13 @@ bool cServer::Tick(float a_Dt) m_PlayerCount += PlayerCountDiff; } + // Send the tick to the plugins, as well as let the plugin manager reload, if asked to (issue #102): + cPluginManager::Get()->Tick(a_Dt); + + // Let the Root process all the queued commands: cRoot::Get()->TickCommands(); + // Tick all clients not yet assigned to a world: TickClients(a_Dt); if (!m_bRestarting)