diff options
author | rubidium <rubidium@openttd.org> | 2009-12-19 19:21:37 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-12-19 19:21:37 +0000 |
commit | a6146f5f516ce08dfb9c5ad62b260ba2e3ae8010 (patch) | |
tree | c9d60cba50de218e9bc3a85a2e140cbb6eb4aa82 /src/openttd.cpp | |
parent | 29d6491605bb13e7a751b2a1a8b8728f17bbc54b (diff) | |
download | openttd-a6146f5f516ce08dfb9c5ad62b260ba2e3ae8010.tar.xz |
(svn r18546) -Codechange: make making the screenshot not asynchronious; just do it at the moment it's requested.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
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); |