hedgewars/hwengine.pas
changeset 11025 999afa63035f
parent 10836 0b415bc2e0eb
child 11046 47a8c19ecb60
child 11094 595b5700ebac
equal deleted inserted replaced
11024:b02e38762bbb 11025:999afa63035f
   136         playSound(sndShutter);
   136         playSound(sndShutter);
   137         ScreenFade:= sfFromWhite;
   137         ScreenFade:= sfFromWhite;
   138         ScreenFadeValue:= sfMax;
   138         ScreenFadeValue:= sfMax;
   139         ScreenFadeSpeed:= 5;
   139         ScreenFadeSpeed:= 5;
   140         
   140         
   141         if (not flagDumpLand and MakeScreenshot(s, 1, 0)) or (flagDumpLand and MakeScreenshot(s, 1, 1) and MakeScreenshot(s, 1, 2)) then
   141         if (not flagDumpLand and MakeScreenshot(s, 1, 0)) or
       
   142            (flagDumpLand and MakeScreenshot(s, 1, 1) and ((cReducedQuality and rqBlurryLand <> 0) or MakeScreenshot(s, 1, 2))) then
   142             WriteLnToConsole('Screenshot saved: ' + s)
   143             WriteLnToConsole('Screenshot saved: ' + s)
   143         else
   144         else
   144             begin
   145             begin
   145             WriteLnToConsole('Screenshot failed.');
   146             WriteLnToConsole('Screenshot failed.');
   146             AddChatString(#5 + 'screen capture failed (lack of memory or write permissions)');
   147             AddChatString(#5 + 'screen capture failed (lack of memory or write permissions)');