# HG changeset patch
# User sheepluva
# Date 1320407437 -3600
# Node ID 654eed7c6b97f1986dbb2b5a3297693520e18c67
# Parent  1e2f8da1860a855d82cbdcd3cd39cd01929dd191
tweak DrawTunnel call of blowtorch. should fix issues with blowtorch going horizontal when it shouldn't

diff -r 1e2f8da1860a -r 654eed7c6b97 hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Fri Nov 04 00:38:37 2011 +0100
+++ b/hedgewars/GSHandlers.inc	Fri Nov 04 12:50:37 2011 +0100
@@ -1424,10 +1424,13 @@
         end;
 
     if b then
-        DrawTunnel(HHGear^.X - Gear^.dX * cHHRadius, HHGear^.Y - _4 - Gear^.dY * cHHRadius + hwAbs(
-                   Gear^.dY) * 7,
+    begin
+        DrawTunnel(HHGear^.X + Gear^.dX * cHHRadius,
+        HHGear^.Y + Gear^.dY * cHHRadius - _1 -
+        ((hwAbs(Gear^.dX) / (hwAbs(Gear^.dX) + hwAbs(Gear^.dY))) * _0_5 * 7),
         Gear^.dX, Gear^.dY,
-        cHHRadius * 5, cHHRadius * 2 + 7);
+        cHHStepTicks, cHHRadius * 2 + 7);
+    end;
 
     if (TurnTimeLeft = 0) or (Gear^.Timer = 0) or ((HHGear^.Message and gmAttack) <> 0) then
         begin