Tweaked Dota 2 support to account for lack of IPluginHelpers (bug 5656, r=asherkin).

This commit is contained in:
Nicholas Hastings
2013-03-19 11:19:19 -04:00
parent 519e8c5fcd
commit 877ef76540
9 changed files with 30 additions and 0 deletions
+4
View File
@@ -283,7 +283,11 @@ void ChatTriggers::OnSayCommand_Post()
/* Execute the cached command */
int client = g_ConCmds.GetCommandClient();
unsigned int old = SetReplyTo(SM_REPLY_CHAT);
#if SOURCE_ENGINE == SE_DOTA
engine->ClientCommand(PEntityOfEntIndex(client), "%s", m_ToExecute);
#else
serverpluginhelpers->ClientCommand(PEntityOfEntIndex(client), m_ToExecute);
#endif
SetReplyTo(old);
}
}