summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3430c23)
raw | patch | inline | side by side (parent: 3430c23)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sun, 6 Aug 2017 08:08:23 +0000 (11:08 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sun, 6 Aug 2017 08:08:51 +0000 (11:08 +0300) |
src/game/g_player.pas | patch | blob | history |
diff --git a/src/game/g_player.pas b/src/game/g_player.pas
index 5719d11d87cfe058314d818bb3b6eb83c5a890b0..e90398276756262f8eb5272e2015fae609deae20 100644 (file)
--- a/src/game/g_player.pas
+++ b/src/game/g_player.pas
result := 255; // default result: "no switch"
for i := 0 to High(wantThisWeapon) do wantThisWeapon[i] := false;
for i := 0 to High(FWeapon) do if (FNextWeap and (1 shl i)) <> 0 then begin wantThisWeapon[i] := true; Inc(wwc); end;
+ (*
if wantThisWeapon[FCurrWeap] then
begin
// these hacks implements alternating between SG and SSG; sorry
if FCurrWeap = WEAPON_KASTET then begin wantThisWeapon[WEAPON_SAW] := true; Inc(wwc); end;
if FCurrWeap = WEAPON_SAW then begin wantThisWeapon[WEAPON_KASTET] := true; Inc(wwc); end;
end;
+ *)
// exclude currently selected weapon from the set
wantThisWeapon[FCurrWeap] := false;
// slow down alterations a little