hedgewars/uVisualGearsHandlers.pas
changeset 9764 8dc9d268330f
parent 9763 be63ead5085e
child 9950 2759212a27de
child 9998 736015b847e3
--- a/hedgewars/uVisualGearsHandlers.pas	Sat Dec 07 21:41:34 2013 -0500
+++ b/hedgewars/uVisualGearsHandlers.pas	Sat Dec 07 22:09:55 2013 -0500
@@ -590,8 +590,6 @@
     begin
     Gear^.X:= hwFloat2Float(Gear^.Hedgehog^.Gear^.X) + (Gear^.Tex^.w div 2  - Gear^.Tag);
     Gear^.Y:= hwFloat2Float(Gear^.Hedgehog^.Gear^.Y) - (16 + Gear^.Tex^.h);
-    Gear^.X:= max(((-cScreenWidth + 16) / zoom) + Gear^.Tex^.w div 2, min(((cScreenWidth - 16) / zoom) - Gear^.Tex^.w div 2, Gear^.X + WorldDx));
-    Gear^.Y:= max(cScreenHeight div 2 - ((cScreenHeight - 16) / (zoom)), min(cScreenHeight div 2 - ((-cScreenHeight + Gear^.Tex^.h) / (zoom)) - 64, Gear^.Y + WorldDy));
     end;
 
 if Gear^.Timer = 0 then