1.1 --- a/core/ConCmdManager.cpp Mon May 13 14:19:17 2013 -0400
1.2 +++ b/core/ConCmdManager.cpp Mon May 13 15:18:12 2013 -0400
1.3 @@ -539,7 +539,9 @@
1.4 return true;
1.5 }
1.6
1.7 +#if SOURCE_ENGINE != SE_DOTA
1.8 edict_t *pEdict = PEntityOfEntIndex(client);
1.9 +#endif
1.10
1.11 /* If we got here, the command failed... */
1.12 char buffer[128];
1.13 @@ -553,7 +555,11 @@
1.14 {
1.15 char fullbuffer[192];
1.16 UTIL_Format(fullbuffer, sizeof(fullbuffer), "[SM] %s.\n", buffer);
1.17 +#if SOURCE_ENGINE == SE_DOTA
1.18 + engine->ClientPrintf(client, fullbuffer);
1.19 +#else
1.20 engine->ClientPrintf(pEdict, fullbuffer);
1.21 +#endif
1.22 }
1.23 else if (replyto == SM_REPLY_CHAT)
1.24 {