From: fgsfds Date: Mon, 2 May 2022 13:51:28 +0000 (+0300) Subject: net: add 'an' as an alias for announce X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=commitdiff_plain;h=06ce403977f0da3911c62eed46414ad03afa9111 net: add 'an' as an alias for announce --- 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