--- a/hedgewars/uAmmos.pas Sun Jul 08 00:16:33 2018 +0200
+++ b/hedgewars/uAmmos.pas Sun Jul 08 01:30:13 2018 +0200
@@ -79,7 +79,6 @@
end;
procedure AddAmmoStore;
-const probability: array [0..8] of LongWord = (0,20,30,60,100,200,400,600,800);
var cnt: Longword;
a: TAmmoType;
ammos: TAmmoCounts;
@@ -99,7 +98,7 @@
begin
if a <> amNothing then
begin
- Ammoz[a].Probability:= probability[byte(ammoProbability[ord(a)]) - byte('0')];
+ Ammoz[a].Probability:= probabilityLevels[byte(ammoProbability[ord(a)]) - byte('0')];
Ammoz[a].SkipTurns:= (byte(ammoDelay[ord(a)]) - byte('0'));
Ammoz[a].NumberInCase:= (byte(ammoReinforcement[ord(a)]) - byte('0'));
cnt:= byte(ammoLoadout[ord(a)]) - byte('0');