1.1 --- a/core/MenuStyle_Valve.cpp Thu Oct 18 00:45:15 2007 +0000
1.2 +++ b/core/MenuStyle_Valve.cpp Thu Oct 18 01:08:48 2007 +0000
1.3 @@ -41,7 +41,6 @@
1.4 ValveMenuStyle g_ValveMenuStyle;
1.5 extern const char *g_OptionNumTable[];
1.6 extern const char *g_OptionCmdTable[];
1.7 -IServerPluginCallbacks *g_pVSPHandle = NULL;
1.8 CallClass<IServerPluginHelpers> *g_pSPHCC = NULL;
1.9
1.10 ValveMenuStyle::ValveMenuStyle() : m_players(new CValveMenuPlayer[256+1])
1.11 @@ -114,11 +113,6 @@
1.12 }
1.13 }
1.14
1.15 -void ValveMenuStyle::OnSourceModVSPReceived(IServerPluginCallbacks *iface)
1.16 -{
1.17 - g_pVSPHandle = iface;
1.18 -}
1.19 -
1.20 IMenuPanel *ValveMenuStyle::CreatePanel()
1.21 {
1.22 return new CValveMenuDisplay();
1.23 @@ -148,7 +142,7 @@
1.24
1.25 bool ValveMenuStyle::DoClientMenu(int client, IMenuPanel *menu, IMenuHandler *mh, unsigned int time)
1.26 {
1.27 - if (!g_pVSPHandle)
1.28 + if (vsp_interface == NULL)
1.29 {
1.30 return false;
1.31 }
1.32 @@ -158,7 +152,7 @@
1.33
1.34 bool ValveMenuStyle::DoClientMenu(int client, CBaseMenu *menu, unsigned int first_item, IMenuHandler *mh, unsigned int time)
1.35 {
1.36 - if (!g_pVSPHandle)
1.37 + if (vsp_interface == NULL)
1.38 {
1.39 mh->OnMenuStart(menu);
1.40 mh->OnMenuCancel(menu, client, MenuCancel_NoDisplay);
1.41 @@ -329,7 +323,7 @@
1.42 engine->PEntityOfEntIndex(client),
1.43 DIALOG_MENU,
1.44 m_pKv,
1.45 - g_pVSPHandle);
1.46 + vsp_interface);
1.47 }
1.48
1.49 bool CValveMenuDisplay::SendDisplay(int client, IMenuHandler *handler, unsigned int time)