Cleanup code a bit
authorunc0rr
Tue, 28 Jul 2009 12:50:47 +0000 (2009-07-28)
changeset 2283 2bcb75cead52
parent 2282 aa186d0e4f39
child 2284 bd091b6b128d
Cleanup code a bit
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Tue Jul 28 12:50:33 2009 +0000
+++ b/hedgewars/GSHandlers.inc	Tue Jul 28 12:50:47 2009 +0000
@@ -740,11 +740,7 @@
 
 HedgehogChAngle(HHGear);
 
-if TestCollisionXwithGear(HHGear, hwSign(HHGear^.dX)) then
-	begin
-	{$IFDEF DEBUGFILE}if HHGear^.dX.QWordValue > 1 then AddFileLog('1 Stopping hedgehog after rope attack due to wall collision');{$ENDIF}
-	SetLittle(HHGear^.dX);
-	end;
+if TestCollisionXwithGear(HHGear, hwSign(HHGear^.dX)) then SetLittle(HHGear^.dX);
 
 if HHGear^.dY.isNegative and TestCollisionYwithGear(HHGear, -1) then HHGear^.dY:= _0;
 HHGear^.X:= HHGear^.X + HHGear^.dX;