# HG changeset patch # User nemo # Date 1431366788 14400 # Node ID 5d7dd938dedcf43e8791aca9475594a1a3930e88 # Parent 6f1b2d0dacdf353010250ad9609f7ccac524aabf This probably fixes bug #839 - mine time was hardcoded to 3000 in Attack, instead of using the "0 as undefined" input that other places were using. When re653e96b0ec3 started paying attention to the input parameter, this previously ignored value became a problem. diff -r 6f1b2d0dacdf -r 5d7dd938dedc hedgewars/uGearsHedgehog.pas --- a/hedgewars/uGearsHedgehog.pas Mon May 11 19:58:54 2015 +0300 +++ b/hedgewars/uGearsHedgehog.pas Mon May 11 13:53:08 2015 -0400 @@ -304,7 +304,7 @@ amPickHammer: newGear:= AddGear(hwRound(lx), hwRound(ly) + cHHRadius, gtPickHammer, 0, _0, _0, 0); amSkip: ParseCommand('/skip', true); amRope: newGear:= AddGear(hwRound(lx), hwRound(ly), gtRope, 0, xx, yy, 0); - amMine: newGear:= AddGear(hwRound(lx) + hwSign(dX) * 7, hwRound(ly), gtMine, gstWait, SignAs(_0_02, dX), _0, 3000); + amMine: newGear:= AddGear(hwRound(lx) + hwSign(dX) * 7, hwRound(ly), gtMine, gstWait, SignAs(_0_02, dX), _0, 0); amSMine: newGear:= AddGear(hwRound(lx), hwRound(ly), gtSMine, 0, xx*Power/cPowerDivisor, yy*Power/cPowerDivisor, 0); amKnife: begin newGear:= AddGear(hwRound(lx), hwRound(ly), gtKnife, 0, xx*Power/cPowerDivisor, yy*Power/cPowerDivisor, 0);