# HG changeset patch # User nemo # Date 1362111333 18000 # Node ID e7bea88096d2b14cd5d61c9a449c8fcc81c625e4 # Parent c4536e98c712e801752380ef2caf051cd254ff55 So. A while ago, while trying to prevent hogs blowtorching getting turned around, unc0rr altered the old range of blowtorch from 1/8th of 180° up or down, to a 4° gain in upwards and a -4° loss in downwards. He also made it so that starting tunnels could fail to erase sufficient terrain, trapping hogs. Here are a couple of workarounds to more closely approximate old behaviour (do some initial erasure, adjust min/max angles) diff -r c4536e98c712 -r e7bea88096d2 hedgewars/GSHandlers.inc --- a/hedgewars/GSHandlers.inc Thu Feb 28 22:10:49 2013 -0500 +++ b/hedgewars/GSHandlers.inc Thu Feb 28 23:15:33 2013 -0500 @@ -1401,6 +1401,14 @@ BTPrevAngle := High(LongInt); BTSteps := 0; HHGear := Gear^.Hedgehog^.Gear; + HedgehogChAngle(HHGear); + Gear^.dX := SignAs(AngleSin(HHGear^.Angle) * _0_5, Gear^.dX); + Gear^.dY := AngleCos(HHGear^.Angle) * ( - _0_5); + DrawTunnel(HHGear^.X, + HHGear^.Y + Gear^.dY * cHHRadius - _1 - + ((hwAbs(Gear^.dX) / (hwAbs(Gear^.dX) + hwAbs(Gear^.dY))) * _0_5 * 7), + Gear^.dX, Gear^.dY, + cHHStepTicks, cHHRadius * 2 + 7); HHGear^.Message := 0; HHGear^.State := HHGear^.State or gstNotKickable; Gear^.doStep := @doStepBlowTorchWork diff -r c4536e98c712 -r e7bea88096d2 hedgewars/uVariables.pas --- a/hedgewars/uVariables.pas Thu Feb 28 22:10:49 2013 -0500 +++ b/hedgewars/uVariables.pas Thu Feb 28 23:15:33 2013 -0500 @@ -1198,8 +1198,8 @@ Bounciness: 1000); Slot: 6; TimeAfterTurn: 3000; - minAngle: 768; - maxAngle: 1280; + minAngle: 804; + maxAngle: 1327; isDamaging: false; SkipTurns: 0; PosCount: 1;