From 5cf51214e027b782e1276c98278413a06ebee294 Mon Sep 17 00:00:00 2001 From: Stas'M Date: Sun, 27 Jan 2019 14:45:06 +0300 Subject: [PATCH] Player: Weapon switch delay is too long --- src/game/g_player.pas | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/g_player.pas b/src/game/g_player.pas index ef00f5d..dc80fdd 100644 --- a/src/game/g_player.pas +++ b/src/game/g_player.pas @@ -95,6 +95,7 @@ const PLAYER_AP_SOFT = 100; PLAYER_AP_LIMIT = 200; SUICIDE_DAMAGE = 112; + WEAPON_DELAY = 5; PLAYER1_DEF_COLOR: TRGB = (R:64; G:175; B:48); PLAYER2_DEF_COLOR: TRGB = (R:96; G:96; B:96); @@ -3616,7 +3617,7 @@ begin begin //e_WriteLog(Format(' SWITCH: cur=%d; new=%d', [FCurrWeap, cwi]), MSG_WARNING); result := Byte(cwi); - FNextWeapDelay := 10; + FNextWeapDelay := WEAPON_DELAY; exit; end; end; @@ -3661,7 +3662,7 @@ begin // i found her! result := Byte(i); resetWeaponQueue(); - FNextWeapDelay := 10; // anyway, 'cause why not + FNextWeapDelay := WEAPON_DELAY; // anyway, 'cause why not exit; end; end; -- 2.29.2