diff --git a/core/AdminCache.cpp b/core/AdminCache.cpp index 6537bc6b..b03f3110 100644 --- a/core/AdminCache.cpp +++ b/core/AdminCache.cpp @@ -1109,7 +1109,7 @@ unsigned int AdminCache::FlagBitsToBitArray(FlagBits bits, bool array[], unsigne unsigned int i; for (i=0; iGetContext()); + size_t langcount = pl->GetLangFileCount(); + void *new_params[MAX_TRANSLATE_PARAMS]; + unsigned int max_params = 0; try_serverlang: if (target == LANG_SERVER) @@ -89,9 +94,7 @@ try_serverlang: goto error_out; } - Translation pTrans; - CPlugin *pl = (CPlugin *)g_PluginSys.FindPluginByContext(pCtx->GetContext()); - size_t langcount = pl->GetLangFileCount(); + max_params = pTrans.fmt_count; if (!TryTranslation(pl, key, langid, langcount, &pTrans)) { @@ -109,8 +112,6 @@ try_serverlang: } } - void *new_params[MAX_TRANSLATE_PARAMS]; - unsigned int max_params = pTrans.fmt_count; for (size_t i=0; iLocalToPhysAddr(params[*arg], reinterpret_cast(&new_params[i])); diff --git a/core/smn_float.cpp b/core/smn_float.cpp index e54fd80b..4a8e8c34 100644 --- a/core/smn_float.cpp +++ b/core/smn_float.cpp @@ -12,6 +12,8 @@ */ #include +#include +#include #include "sm_globals.h" /**************************************** diff --git a/core/smn_player.cpp b/core/smn_player.cpp index df86366a..fa6da607 100644 --- a/core/smn_player.cpp +++ b/core/smn_player.cpp @@ -406,6 +406,7 @@ REGISTER_NATIVES(playernatives) {"PrintToConsole", sm_PrintToConsole}, {"GetClientInfo", sm_GetClientInfo}, {"SetUserAdmin", SetUserAdmin}, + {"GetUserAdmin", GetUserAdmin}, {"AddUserFlags", AddUserFlags}, {"RemoveUserFlags", RemoveUserFlags}, {"SetUserFlagBits", SetUserFlagBits}, diff --git a/core/svn_version.h b/core/svn_version.h index 75ccd495..97147a48 100644 --- a/core/svn_version.h +++ b/core/svn_version.h @@ -1,11 +1,11 @@ -/** This file is autogenerated by build scripts */ - -#ifndef _INCLUDE_SVN_VERSION_H_ -#define _INCLUDE_SVN_VERSION_H_ - -#define SVN_REVISION 429 -#define SVN_REVISION_STRING "429" -#define SVN_FILE_VERSION 1,0,0,429 - -#endif //_INCLUDE_SVN_VERSION_H_ - +/** This file is autogenerated by build scripts */ + +#ifndef _INCLUDE_SVN_VERSION_H_ +#define _INCLUDE_SVN_VERSION_H_ + +#define SVN_REVISION 468 +#define SVN_REVISION_STRING "468" +#define SVN_FILE_VERSION 1,0,0,468 + +#endif //_INCLUDE_SVN_VERSION_H_ + diff --git a/core/systems/ForwardSys.h b/core/systems/ForwardSys.h index e8e16ae7..db283fde 100644 --- a/core/systems/ForwardSys.h +++ b/core/systems/ForwardSys.h @@ -84,7 +84,7 @@ protected: /* :TODO: I want a caching list type here. * Destroying these things and using new/delete for their members feels bad. */ - List m_functions; + mutable List m_functions; List m_paused; /* Type and name information */ diff --git a/core/systems/PluginSys.cpp b/core/systems/PluginSys.cpp index 6699cf26..e1761185 100644 --- a/core/systems/PluginSys.cpp +++ b/core/systems/PluginSys.cpp @@ -1658,4 +1658,5 @@ void CPluginManager::_SetPauseState(CPlugin *pl, bool paused) pListener = (*iter); pListener->OnPluginPauseChange(pl, paused); } -} \ No newline at end of file +} +