diff -r fd84073f91e2 -r d7dc79f1f93e core/sourcemod.cpp --- a/core/sourcemod.cpp Sat May 12 23:45:36 2007 +0000 +++ b/core/sourcemod.cpp Sat May 12 23:45:52 2007 +0000 @@ -29,6 +29,7 @@ #include "Translator.h" #include "ForwardSys.h" #include "TimerSys.h" +#include "MenuStyle_Valve.h" SH_DECL_HOOK6(IServerGameDLL, LevelInit, SH_NOATTRIB, false, bool, const char *, const char *, const char *, const char *, bool, bool); SH_DECL_HOOK0_void(IServerGameDLL, LevelShutdown, SH_NOATTRIB, false); @@ -43,6 +44,7 @@ IVirtualMachine *g_pVM; IdentityToken_t *g_pCoreIdent = NULL; float g_LastTime = 0.0f; +float g_LastMenuTime = 0.0f; float g_LastAuthCheck = 0.0f; IForward *g_pOnGameFrame = NULL; IForward *g_pOnMapEnd = NULL; @@ -264,6 +266,7 @@ m_IsMapLoading = true; m_ExecPluginReload = true; g_LastTime = 0.0f; + g_LastMenuTime = 0.0f; g_LastAuthCheck = 0.0f; g_SimTicks.ticking = true; g_SimTicks.tickcount = 0; @@ -384,6 +387,12 @@ g_LastTime = curtime; } + if (g_SimTicks.tickcount && (curtime - g_LastMenuTime >= 1.0f)) + { + g_ValveMenuStyle.ProcessWatchList(); + g_LastMenuTime = curtime; + } + if (g_pOnGameFrame && g_pOnGameFrame->GetFunctionCount()) { g_pOnGameFrame->Execute(NULL);