readded optimization for SetScale
authorWolfgang Steffens <WolfgangSteff@gmail.com>
Mon, 14 May 2012 22:14:17 +0200
changeset 7084 a471de309dcc
parent 7082 17b0892ac794
child 7108 eaef11c0d039
readded optimization for SetScale
hedgewars/uStore.pas
--- a/hedgewars/uStore.pas	Mon May 14 19:48:34 2012 +0200
+++ b/hedgewars/uStore.pas	Mon May 14 22:14:17 2012 +0200
@@ -761,8 +761,11 @@
 
 procedure SetScale(f: GLfloat);
 begin
-    cScaleFactor:=f;
-    UpdateProjection;
+    if cScaleFactor <> f then
+        begin
+        cScaleFactor:=f;
+        UpdateProjection;
+        end;
 end;
 
 ////////////////////////////////////////////////////////////////////////////////