engine: Don't overwrite isTerminated if it's already true
authorMedo <smaxein@googlemail.com>
Mon, 20 Aug 2012 17:08:52 +0200
changeset 7578 d5c880e6d772
parent 7576 65d29988fd3d
child 7580 c92596feac0d
engine: Don't overwrite isTerminated if it's already true
hedgewars/hwengine.pas
--- a/hedgewars/hwengine.pas	Sun Aug 19 15:05:23 2012 +0200
+++ b/hedgewars/hwengine.pas	Mon Aug 20 17:08:52 2012 +0200
@@ -256,7 +256,7 @@
         CurrTime:= SDL_GetTicks();
         if PrevTime + longword(cTimerInterval) <= CurrTime then
         begin
-            isTerminated:= DoTimer(CurrTime - PrevTime);
+            isTerminated := isTerminated or DoTimer(CurrTime - PrevTime);
             PrevTime:= CurrTime
         end
         else SDL_Delay(1);