core/ConCmdManager.cpp
changeset 3899 fd4ec50a0d6c
parent 3872 4c93f74cae51
child 3913 a73cf1f26984
     1.1 --- a/core/ConCmdManager.cpp	Tue Apr 23 07:11:49 2013 -0400
     1.2 +++ b/core/ConCmdManager.cpp	Tue Apr 23 07:11:49 2013 -0400
     1.3 @@ -40,7 +40,9 @@
     1.4  
     1.5  ConCmdManager g_ConCmds;
     1.6  
     1.7 -#if SOURCE_ENGINE >= SE_ORANGEBOX
     1.8 +#if SOURCE_ENGINE == SE_DOTA
     1.9 +	SH_DECL_HOOK2_void(ConCommand, Dispatch, SH_NOATTRIB, false, void *, const CCommand &);
    1.10 +#elif SOURCE_ENGINE >= SE_ORANGEBOX
    1.11  	SH_DECL_HOOK1_void(ConCommand, Dispatch, SH_NOATTRIB, false, const CCommand &);
    1.12  #else
    1.13  	SH_DECL_HOOK0_void(ConCommand, Dispatch, SH_NOATTRIB, false);
    1.14 @@ -206,7 +208,10 @@
    1.15  		delete pList;
    1.16  	}
    1.17  }
    1.18 -#if SOURCE_ENGINE >= SE_ORANGEBOX
    1.19 +#if SOURCE_ENGINE == SE_DOTA
    1.20 +void CommandCallback(void *pUnknown, const CCommand &command)
    1.21 +{
    1.22 +#elif SOURCE_ENGINE >= SE_ORANGEBOX
    1.23  void CommandCallback(const CCommand &command)
    1.24  {
    1.25  #else