1212
1313void __stdcall
1414HookInitCommands () {
15- CommandClass * NewHotkeys [] = { & ChatToAlliesCommand ,
15+ CommandClass * NewHotkeys [] = {
16+ #ifndef VINIFERA
17+ & ChatToAlliesCommand ,
1618 & ChatToAllCommand ,
1719 & ChatToPlayerCommand ,
20+ #endif
1821 & TextBackgroundColorCommand ,
1922#ifdef SHAREDCONTROL
2023 & GrantControlCommand ,
@@ -43,6 +46,7 @@ HookInitCommands() {
4346 // Loop through hotkeys and if chattoallis is not enabled then set it to backspace
4447 for (int i = 0 ; i < Hotkeys_ActiveCount ; i ++ ) {
4548 Hotkey key = Hotkeys_Vector [i ];
49+ #ifndef VINIFERA
4650 if (key .Command == & ChatToAlliesCommand ) {
4751 seen_allies = 1 ;
4852 WWDebug_Printf ("****************************Seen ChatToAllies\n" );
@@ -52,7 +56,7 @@ HookInitCommands() {
5256 seen_all = 1 ;
5357 WWDebug_Printf ("****************************Seen ChatToAll\n" );
5458 }
55-
59+ #endif
5660 if (key .Command == & ShowHelpCommand )
5761 {
5862 seen_help = true;
@@ -68,6 +72,7 @@ HookInitCommands() {
6872 if (key .KeyCode == 0x20 )
6973 seen_space = 1 ;
7074 }
75+ #ifndef VINIFERA
7176 if (!seen_allies && !seen_backspace ) {
7277 WWDebug_Printf ("****************************didn't see ChatToAllies adding as hotkey[%d]\n" ,Hotkeys_ActiveCount );
7378 if (Hotkeys_VectorMax <= Hotkeys_ActiveCount + 1 )
@@ -83,7 +88,7 @@ HookInitCommands() {
8388 Hotkeys_Vector [Hotkeys_ActiveCount ].KeyCode = 0x0D ;
8489 ++ Hotkeys_ActiveCount ;
8590 }
86-
91+ #endif
8792 if (!seen_help && !seen_space ) {
8893 if (Hotkeys_VectorMax <= Hotkeys_ActiveCount + 1 )
8994 CCINIClass_Vector_Resize (& Hotkeys , 10 );
@@ -127,6 +132,7 @@ CommandClass MapSnapshotCommand = { &vtMapSnapshotCommand,0,17,17 };
127132
128133
129134/* Start ChatAllies */
135+ #ifndef VINIFERA
130136void __thiscall ChatToAllies_nothing (void * a ) { }
131137char * __thiscall ChatToAllies_Description (void * a ) { return "Send a message to all of your allies" ; }
132138char * __thiscall ChatToAllies_INIname (void * a ) { return "ChatToAllies" ; }
@@ -199,6 +205,7 @@ vtCommandClass vtChatToPlayerCommand = {
199205 ChatToPlayer_nothing
200206};
201207CommandClass ChatToPlayerCommand = { & vtChatToPlayerCommand ,0 ,17 ,17 };
208+ #endif
202209/* End ChatAll */
203210
204211/* Start MPDebugPrint */
0 commit comments