Skip to content

Commit f1809e9

Browse files
committed
Disable chat patches in Vinifera
1 parent 9af87eb commit f1809e9

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,6 @@ OBJS += src/buildlimit_fix.o
173173
OBJS += src/c4_repairable_fix.o
174174
OBJS += src/carryall_click_under_glitch.o
175175
OBJS += src/center_team.o
176-
OBJS += src/chat_ignore.o
177-
OBJS += src/chatallies.o
178176
OBJS += src/coach_mode.o
179177
OBJS += src/config.o
180178
OBJS += src/crate_patches.o
@@ -364,6 +362,8 @@ OBJS += src/sidebar_cameo_sort.o
364362
OBJS += src/sidebar_cameo_sort_helper.o
365363
OBJS += src/text_triggers.o
366364
OBJS += src/whiteboy_cameo_bugfix.o
365+
OBJS += src/chat_ignore.o
366+
OBJS += src/chatallies.o
367367

368368
# The logger is needed for certain client features
369369
ifneq ($(call ifdef_any_of,MOD_DTA MOD_TI MOD_TO MOD_RUBICON MOD_FD MOD_TM TSCLIENT),)

src/hotkey_help.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@ InfoPanelHotkeysInit()
8585
{
8686
static vtCommandClass *search_keys[] = {
8787
&vtToggleInfoPanelCommand,
88+
#ifndef VINIFERA
8889
&vtChatToAlliesCommand,
8990
&vtChatToAllCommand,
91+
#endif
9092
&AllianceCommandClass,
9193
&GuardCommandClass,
9294
&DeployCommandClass,

src/hotkeys.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212

1313
void __stdcall
1414
HookInitCommands() {
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
130136
void __thiscall ChatToAllies_nothing(void *a) { }
131137
char * __thiscall ChatToAllies_Description(void *a) { return "Send a message to all of your allies"; }
132138
char * __thiscall ChatToAllies_INIname(void *a) { return "ChatToAllies"; }
@@ -199,6 +205,7 @@ vtCommandClass vtChatToPlayerCommand = {
199205
ChatToPlayer_nothing
200206
};
201207
CommandClass ChatToPlayerCommand = { &vtChatToPlayerCommand,0,17,17 };
208+
#endif
202209
/* End ChatAll */
203210

204211
/* Start MPDebugPrint */

src/spawner/spawner.asm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1824,8 +1824,10 @@ Add_Human_Opponents:
18241824
18251825
xor eax, eax
18261826
mov al, byte[esi+0x39]
1827-
1827+
1828+
%ifndef VINIFERA
18281829
mov byte[eax+IgnoredColors], 1
1830+
%endif
18291831

18301832
.notIgnored:
18311833

0 commit comments

Comments
 (0)