From: Dmitry D. Chernov Date: Sat, 2 Sep 2023 17:47:55 +0000 (+1000) Subject: Game: Fix soulsphere and megasphere being mixed up in the 'give' command X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=bdb4859536a3962963e823a0f30b6ad98c7ad9c5;p=d2df-sdl.git Game: Fix soulsphere and megasphere being mixed up in the 'give' command --- diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 9f399b6..b675eb4 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -6440,8 +6440,8 @@ begin if cmd = 'greenarmor' then begin plr.GiveItem(ITEM_ARMOR_GREEN); g_Console_Add('player got a security armor'); continue; end; if cmd = 'bluearmor' then begin plr.GiveItem(ITEM_ARMOR_BLUE); g_Console_Add('player got a combat armor'); continue; end; - if (cmd = 'megasphere') or (cmd = 'mega') then begin plr.GiveItem(ITEM_SPHERE_BLUE); g_Console_Add('player got a megasphere'); continue; end; - if (cmd = 'soulsphere') or (cmd = 'soul')then begin plr.GiveItem(ITEM_SPHERE_WHITE); g_Console_Add('player got a soul sphere'); continue; end; + if (cmd = 'soulsphere') or (cmd = 'soul') then begin plr.GiveItem(ITEM_SPHERE_BLUE); g_Console_Add('player got a soul sphere'); continue; end; + if (cmd = 'megasphere') or (cmd = 'mega') then begin plr.GiveItem(ITEM_SPHERE_WHITE); g_Console_Add('player got a megasphere'); continue; end; if (cmd = 'invul') or (cmd = 'invulnerability') then begin plr.GiveItem(ITEM_INVUL); g_Console_Add('player got invulnerability'); continue; end; if (cmd = 'invis') or (cmd = 'invisibility') then begin plr.GiveItem(ITEM_INVIS); g_Console_Add('player got invisibility'); continue; end;