1.1 --- a/core/sourcemod.cpp Sat May 12 23:45:36 2007 +0000
1.2 +++ b/core/sourcemod.cpp Sat May 12 23:45:52 2007 +0000
1.3 @@ -29,6 +29,7 @@
1.4 #include "Translator.h"
1.5 #include "ForwardSys.h"
1.6 #include "TimerSys.h"
1.7 +#include "MenuStyle_Valve.h"
1.8
1.9 SH_DECL_HOOK6(IServerGameDLL, LevelInit, SH_NOATTRIB, false, bool, const char *, const char *, const char *, const char *, bool, bool);
1.10 SH_DECL_HOOK0_void(IServerGameDLL, LevelShutdown, SH_NOATTRIB, false);
1.11 @@ -43,6 +44,7 @@
1.12 IVirtualMachine *g_pVM;
1.13 IdentityToken_t *g_pCoreIdent = NULL;
1.14 float g_LastTime = 0.0f;
1.15 +float g_LastMenuTime = 0.0f;
1.16 float g_LastAuthCheck = 0.0f;
1.17 IForward *g_pOnGameFrame = NULL;
1.18 IForward *g_pOnMapEnd = NULL;
1.19 @@ -264,6 +266,7 @@
1.20 m_IsMapLoading = true;
1.21 m_ExecPluginReload = true;
1.22 g_LastTime = 0.0f;
1.23 + g_LastMenuTime = 0.0f;
1.24 g_LastAuthCheck = 0.0f;
1.25 g_SimTicks.ticking = true;
1.26 g_SimTicks.tickcount = 0;
1.27 @@ -384,6 +387,12 @@
1.28 g_LastTime = curtime;
1.29 }
1.30
1.31 + if (g_SimTicks.tickcount && (curtime - g_LastMenuTime >= 1.0f))
1.32 + {
1.33 + g_ValveMenuStyle.ProcessWatchList();
1.34 + g_LastMenuTime = curtime;
1.35 + }
1.36 +
1.37 if (g_pOnGameFrame && g_pOnGameFrame->GetFunctionCount())
1.38 {
1.39 g_pOnGameFrame->Execute(NULL);