hedgewars/uWorld.pas
changeset 5856 ed97138dc414
parent 5855 74c621e12baa
child 5862 b4229b0abc70
equal deleted inserted replaced
5855:74c621e12baa 5856:ed97138dc414
   800     DrawLand(WorldDx, WorldDy);
   800     DrawLand(WorldDx, WorldDy);
   801 
   801 
   802     DrawWater(255, 0);
   802     DrawWater(255, 0);
   803 
   803 
   804 // Attack bar
   804 // Attack bar
   805     if CurrentTeam <> nil then
   805     if (CurrentTeam <> nil) and (CurrentHedgehog^.Gear <> nil) then
   806         case AttackBar of
   806         case AttackBar of
   807 (*        1: begin
   807 (*        1: begin
   808         r:= StuffPoz[sPowerBar];
   808         r:= StuffPoz[sPowerBar];
   809         {$WARNINGS OFF}
   809         {$WARNINGS OFF}
   810         r.w:= (CurrentHedgehog^.Gear^.Power * 256) div cPowerDivisor;
   810         r.w:= (CurrentHedgehog^.Gear^.Power * 256) div cPowerDivisor;