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)
authornemo
Thu, 28 Feb 2013 23:15:33 -0500
changeset 8617 e7bea88096d2
parent 8616 c4536e98c712
child 8618 7e71dba4e7f3
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)
hedgewars/GSHandlers.inc
hedgewars/uVariables.pas
--- 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
--- 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;