# HG changeset patch # User nemo # Date 1330277568 18000 # Node ID 0acfa8202a291061077816563f03a23f69d2c2d6 # Parent 770689c4625db665f39010865fdc54892fd7861a pass indexes for the clan/team/hedgehog diff -r 770689c4625d -r 0acfa8202a29 hedgewars/uScript.pas --- a/hedgewars/uScript.pas Sun Feb 26 11:28:28 2012 -0500 +++ b/hedgewars/uScript.pas Sun Feb 26 12:32:48 2012 -0500 @@ -1966,7 +1966,7 @@ if ScriptExists('onNewAmmoStore') then begin ScriptPrepareAmmoStore; - ScriptCall('onNewAmmoStore'); + ScriptCall('onNewAmmoStore',i,-1); end; AddAmmoStore; for j:= 0 to Pred(ClansArray[i]^.TeamsNumber) do @@ -1981,6 +1981,7 @@ begin ScriptPrepareAmmoStore; ScriptCall('onNewAmmoStore'); + ScriptCall('onNewAmmoStore',i,j); end; AddAmmoStore; TeamsArray[i]^.Hedgehogs[j].AmmoStore:= StoreCnt - 1 @@ -1991,7 +1992,7 @@ if ScriptExists('onNewAmmoStore') then begin ScriptPrepareAmmoStore; - ScriptCall('onNewAmmoStore'); + ScriptCall('onNewAmmoStore',i,-1); end; AddAmmoStore; for j:= 0 to Pred(TeamsArray[i]^.HedgehogsNumber) do