From 06ce403977f0da3911c62eed46414ad03afa9111 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Mon, 2 May 2022 16:51:28 +0300 Subject: [PATCH] net: add 'an' as an alias for announce --- src/game/g_console.pas | 1 + src/game/g_game.pas | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/g_console.pas b/src/game/g_console.pas index 983b63b..7ae8166 100644 --- a/src/game/g_console.pas +++ b/src/game/g_console.pas @@ -1110,6 +1110,7 @@ begin AddCommand('chat', GameCommands); AddCommand('teamchat', GameCommands); AddCommand('announce', GameCommands); + AddCommand('an', GameCommands); AddCommand('game', GameCommands); AddCommand('host', GameCommands); AddCommand('map', GameCommands); diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 6049b90..d1246ba 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -6976,7 +6976,7 @@ begin end else g_Console_Add(_lc[I_MSG_GM_UNAVAIL]); end - else if cmd = 'announce' then + else if (cmd = 'an') or (cmd = 'announce') then begin if g_Game_IsNet then begin -- 2.29.2