hedgewars/hwengine.pas
changeset 6863 4d1ce4b4f7c6
parent 6734 9709d15dabfa
child 6917 4889c2b779b4
--- a/hedgewars/hwengine.pas	Sun Apr 08 18:11:37 2012 +0200
+++ b/hedgewars/hwengine.pas	Sun Apr 08 18:46:09 2012 +0200
@@ -250,31 +250,31 @@
         end; //end case event.type_ of
     end; //end while SDL_PollEvent(@event) <> 0 do
 
-        if (cScreenResizeDelay <> 0) and (cScreenResizeDelay < RealTicks)
-        and ((cNewScreenWidth <> cScreenWidth) or (cNewScreenHeight <> cScreenHeight)) then
-            begin
-            cScreenResizeDelay:= 0;
-            cScreenWidth:= cNewScreenWidth;
-            cScreenHeight:= cNewScreenHeight;
+    if (cScreenResizeDelay <> 0) and (cScreenResizeDelay < RealTicks) and
+       ((cNewScreenWidth <> cScreenWidth) or (cNewScreenHeight <> cScreenHeight)) then
+    begin
+        cScreenResizeDelay:= 0;
+        cScreenWidth:= cNewScreenWidth;
+        cScreenHeight:= cNewScreenHeight;
 
-            ParseCommand('fullscr '+intToStr(LongInt(cFullScreen)), true);
-            WriteLnToConsole('window resize: ' + IntToStr(cScreenWidth) + ' x ' + IntToStr(cScreenHeight));
-            ScriptOnScreenResize();
-            InitCameraBorders();
-            InitTouchInterface();
-            end;
+        ParseCommand('fullscr '+intToStr(LongInt(cFullScreen)), true);
+        WriteLnToConsole('window resize: ' + IntToStr(cScreenWidth) + ' x ' + IntToStr(cScreenHeight));
+        ScriptOnScreenResize();
+        InitCameraBorders();
+        InitTouchInterface();
+    end;
 
-        if isTerminated = false then
-            begin
-            CurrTime:= SDL_GetTicks;
-            if PrevTime + longword(cTimerInterval) <= CurrTime then
-                begin
-                DoTimer(CurrTime - PrevTime);
-                PrevTime:= CurrTime
-                end
-            else SDL_Delay(1);
-            IPCCheckSock();
-            end;
+    if isTerminated = false then
+    begin
+        CurrTime:= SDL_GetTicks;
+        if PrevTime + longword(cTimerInterval) <= CurrTime then
+        begin
+            DoTimer(CurrTime - PrevTime);
+            PrevTime:= CurrTime
+        end
+        else SDL_Delay(1);
+        IPCCheckSock();
+        end;
     end;
 end;