added SetGlobalTarget() calls to anything that uses Format()

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401017
This commit is contained in:
David Anderson
2007-06-24 19:40:25 +00:00
parent 5271043e92
commit 2f3e46f8f8
7 changed files with 27 additions and 0 deletions
+4
View File
@@ -273,6 +273,8 @@ static cell_t PrintToChat(IPluginContext *pContext, const cell_t *params)
return pContext->ThrowNativeError("Client %d is not in game", client);
}
g_SourceMod.SetGlobalTarget(client);
char buffer[192];
g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 2);
@@ -296,6 +298,8 @@ static cell_t PrintCenterText(IPluginContext *pContext, const cell_t *params)
return pContext->ThrowNativeError("Client %d is not in game", client);
}
g_SourceMod.SetGlobalTarget(client);
char buffer[192];
g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 2);