stop screenshot-flash-effects from showing up on consecutive screenshots
authorsheepluva
Mon, 11 Jan 2016 22:23:14 +0100
changeset 11502 66f1cff4284b
parent 11501 df990633cb25
child 11503 1908b919c057
stop screenshot-flash-effects from showing up on consecutive screenshots
hedgewars/hwengine.pas
--- a/hedgewars/hwengine.pas	Sun Jan 10 21:33:11 2016 +0100
+++ b/hedgewars/hwengine.pas	Mon Jan 11 22:23:14 2016 +0100
@@ -99,6 +99,9 @@
             end;
         gsConfirm, gsGame, gsChat:
             begin
+            // disable screenshot flash effect when about to make another screenshot
+            if flagMakeCapture and (ScreenFade = sfFromWhite) then
+                ScreenFade:= sfNone;
             if not cOnlyStats then
                 // never place between ProcessKbd and DoGameTick - bugs due to /put cmd and isCursorVisible
                 DrawWorld(Lag);