[Dedicated] Add 'unused' dedicated server code cause it's actually used

Removing it breaks the ZoneBuilder @TheApadayo!
This commit is contained in:
momo5502 2017-06-08 15:54:00 +02:00
parent 280830274c
commit 20b8c1cec4

View File

@ -297,7 +297,7 @@ namespace Components
Dvar::Register<bool>("sv_dontrotate", false, Game::dvar_flag::DVAR_FLAG_CHEAT, "");
Dvar::Register<bool>("com_logFilter", true, Game::dvar_flag::DVAR_FLAG_LATCHED, "Removes ~95% of unneeded lines from the log");
if (Dedicated::IsEnabled())
if (Dedicated::IsEnabled() || ZoneBuilder::IsEnabled())
{
// Make sure all callbacks are handled
Scheduler::OnFrame(Steam::SteamAPI_RunCallbacks);
@ -379,6 +379,8 @@ namespace Components
Utils::Hook(0x62737D, Dedicated::TimeWrapStub, HOOK_CALL).install()->quick();
//Utils::Hook::Set<DWORD>(0x62735C, 50'000); // Time wrap after 50 seconds (for testing - i don't want to wait 3 weeks)
if (!ZoneBuilder::IsEnabled())
{
// Post initialization point
Utils::Hook(0x60BFBF, Dedicated::PostInitializationStub, HOOK_JUMP).install()->quick();
@ -498,6 +500,7 @@ namespace Components
});
});
}
}
else
{
for(int i = 0; i < ARRAYSIZE(Dedicated::PlayerGuids); ++i)