Updated protobuf and usermessage support for Dota 2 (bug 5656, r=asherkin).

This commit is contained in:
Nicholas Hastings
2013-03-19 11:19:38 -04:00
parent 877ef76540
commit e364937353
7 changed files with 174 additions and 37 deletions
+2 -2
View File
@@ -48,7 +48,7 @@
#include "ConsoleDetours.h"
#include "ConCommandBaseIterator.h"
#if SOURCE_ENGINE == SE_CSGO
#if SOURCE_ENGINE == SE_CSGO || SOURCE_ENGINE == SE_DOTA
#include <netmessages.pb.h>
#endif
@@ -1435,7 +1435,7 @@ static cell_t SendConVarValue(IPluginContext *pContext, const cell_t *params)
char data[256];
bf_write buffer(data, sizeof(data));
#if SOURCE_ENGINE == SE_CSGO
#if SOURCE_ENGINE == SE_CSGO || SOURCE_ENGINE == SE_DOTA
CNETMsg_SetConVar msg;
CMsg_CVars_CVar *cvar = msg.mutable_convars()->add_cvars();