DEADSOFTWARE

net: add 'an' as an alias for announce
authorfgsfds <pvt.fgsfds@gmail.com>
Mon, 2 May 2022 13:51:28 +0000 (16:51 +0300)
committerfgsfds <pvt.fgsfds@gmail.com>
Mon, 2 May 2022 13:51:28 +0000 (16:51 +0300)
src/game/g_console.pas
src/game/g_game.pas

index 983b63b195c285158b332ed9e99b910309aa55c5..7ae8166192d7c16994c1855083076335fbf88d3a 100644 (file)
@@ -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);
index 6049b9062b623b4ecbee540b685c17f6aca9e1c2..d1246ba0c7dabdc027035501fe4fee5bd9bfc6a7 100644 (file)
@@ -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