hedgewars/uGearsRender.pas
changeset 7111 5ba5a92d74fb
parent 7098 f8c453ade379
child 7186 013deb83086b
--- a/hedgewars/uGearsRender.pas	Tue May 22 09:18:46 2012 +0200
+++ b/hedgewars/uGearsRender.pas	Tue May 22 09:25:03 2012 +0200
@@ -54,9 +54,9 @@
     glDisable(GL_TEXTURE_2D);
     //glEnable(GL_LINE_SMOOTH);
 
-    glPushMatrix;
-
-    glTranslatef(WorldDx, WorldDy, 0);
+    ResetRotation;
+    SetOffset(WorldDx, WorldDy);
+    UpdateModelview;
 
     glLineWidth(4.0);
 
@@ -66,8 +66,6 @@
     glDrawArrays(GL_LINE_STRIP, 0, RopePoints.Count + 2);
     Tint($FF, $FF, $FF, $FF);
 
-    glPopMatrix;
-
     glEnable(GL_TEXTURE_2D);
     //glDisable(GL_LINE_SMOOTH)
     end