Tweak condition for hiding ammo
authornemo
Sun, 28 Feb 2010 17:32:39 +0000
changeset 2885 518e6e66239d
parent 2884 a2ca1f7fe6c5
child 2886 c7087a565bd2
Tweak condition for hiding ammo
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Sun Feb 28 17:20:49 2010 +0000
+++ b/hedgewars/uWorld.pas	Sun Feb 28 17:32:39 2010 +0000
@@ -138,7 +138,7 @@
     Slot, Pos: LongInt;
     Ammo: PHHAmmo;
 begin
-if (TurnTimeLeft = 0) or (((CurAmmoGear = nil) or ((CurAmmoGear^.Ammo^.Propz and ammoprop_AltAttack) = 0)) and hideAmmoMenu) then bShowAmmoMenu:= false;
+if  (TurnTimeLeft = 0) or (not CurrentTeam^.ExtDriven and (((CurAmmoGear = nil) or ((CurAmmoGear^.Ammo^.Propz and ammoprop_AltAttack) = 0)) and hideAmmoMenu)) then bShowAmmoMenu:= false;
 if bShowAmmoMenu then
    begin
    FollowGear:= nil;