From a6146f5f516ce08dfb9c5ad62b260ba2e3ae8010 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 19 Dec 2009 19:21:37 +0000 Subject: (svn r18546) -Codechange: make making the screenshot not asynchronious; just do it at the moment it's requested. --- src/openttd.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/openttd.cpp') diff --git a/src/openttd.cpp b/src/openttd.cpp index 2f632b4be..46999783c 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -768,17 +768,6 @@ void HandleExitGameRequest() } } -static void ShowScreenshotResult(bool b) -{ - if (b) { - SetDParamStr(0, _screenshot_name); - ShowErrorMessage(STR_MESSAGE_SCREENSHOT_SUCCESSFULLY, INVALID_STRING_ID, 0, 0); - } else { - ShowErrorMessage(STR_ERROR_SCREENSHOT_FAILED, INVALID_STRING_ID, 0, 0); - } - -} - static void MakeNewGameDone() { SettingsDisableElrail(_settings_game.vehicle.disable_elrails); @@ -1239,9 +1228,6 @@ void GameLoop() RedrawAutosave(); } - /* make a screenshot? */ - if (IsScreenshotRequested()) ShowScreenshotResult(MakeScreenshot()); - /* switch game mode? */ if (_switch_mode != SM_NONE) { SwitchToMode(_switch_mode); -- cgit v1.2.3-54-g00ecf