1.1 --- a/core/ConVarManager.cpp Sat Aug 18 22:51:25 2007 +0000
1.2 +++ b/core/ConVarManager.cpp Sun Aug 19 13:25:42 2007 +0000
1.3 @@ -37,6 +37,7 @@
1.4 #include "sm_srvcmds.h"
1.5 #include "sm_stringutil.h"
1.6 #include <sh_vector.h>
1.7 +#include "PlayerManager.h"
1.8
1.9 ConVarManager g_ConVarManager;
1.10
1.11 @@ -564,12 +565,18 @@
1.12 for (iter = m_ConVarQueries.begin(); iter != m_ConVarQueries.end(); iter++)
1.13 {
1.14 ConVarQuery &query = (*iter);
1.15 -
1.16 if (query.cookie == cookie)
1.17 {
1.18 pCallback = query.pCallback;
1.19 value = query.value;
1.20
1.21 + if (!pCallback)
1.22 + {
1.23 + g_Players.HandleLangQuery(engine->GetPlayerUserId(pPlayer), (result == eQueryCvarValueStatus_ValueIntact) ? cvarValue : "", cookie);
1.24 + m_ConVarQueries.erase(iter);
1.25 + return;
1.26 + }
1.27 +
1.28 break;
1.29 }
1.30 }