1.1 --- a/sourcemm/sourcemm.cpp Fri May 27 21:39:30 2005 +0000
1.2 +++ b/sourcemm/sourcemm.cpp Fri Jun 24 22:26:19 2005 +0000
1.3 @@ -222,6 +222,12 @@
1.4
1.5 //Initialize our console hooks
1.6 ConCommandBaseMgr::OneTimeInit(static_cast<IConCommandBaseAccessor *>(&g_SMConVarAccessor));
1.7 +
1.8 + if (!g_SmmAPI.CacheCmds())
1.9 + {
1.10 + LogMessage("[META] Warning: Failed to initialize Con_Printf. Defaulting to Msg().");
1.11 + LogMessage("[META] Warning: Console messages will not be redirected to rcon console.");
1.12 + }
1.13
1.14 //Now it's safe to load plugins.
1.15 #if defined WIN32 || defined _WIN32
1.16 @@ -434,3 +440,14 @@
1.17 bInFirstLevel = false;
1.18 }
1.19 }
1.20 +
1.21 +bool CServerGameDLL::LevelInit( char const *pMapName, char const *pMapEntities, char const *pOldLevel, char const *pLandmarkName, bool loadGame, bool background )
1.22 +{
1.23 + if (!g_SmmAPI.CacheSuccessful())
1.24 + {
1.25 + LogMessage("[META] Warning: Failed to initialize Con_Printf. Defaulting to Msg().");
1.26 + LogMessage("[META] Warning: Console messages will not be redirected to rcon console.");
1.27 + }
1.28 +
1.29 + return m_pOrig->LevelInit(pMapName, pMapEntities, pOldLevel, pLandmarkName, loadGame, background);
1.30 +}