Filter messages to blowtorch. Fixes long tunnels
authorunc0rr
Sun, 14 Dec 2008 13:48:29 +0000
changeset 1545 76b90ff9739a
parent 1544 56c0c5025136
child 1546 2bd33f2287cc
Filter messages to blowtorch. Fixes long tunnels
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Thu Dec 11 18:28:40 2008 +0000
+++ b/hedgewars/GSHandlers.inc	Sun Dec 14 13:48:29 2008 +0000
@@ -571,9 +571,9 @@
 	begin
 	b:= true;
 	if Gear^.dX.isNegative then
-		HHGear^.Message:= (HHGear^.Message or gm_Left) and not gm_Right
+		HHGear^.Message:= (HHGear^.Message and gm_Attack) or gm_Left
 	else
-		HHGear^.Message:= (HHGear^.Message or gm_Right) and not gm_Left;
+		HHGear^.Message:= (HHGear^.Message and gm_Attack) or gm_Right;
 
 	if ((HHGear^.State and gstMoving) = 0) then
 		begin