diff options
author | smatz <smatz@openttd.org> | 2010-02-24 14:46:15 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2010-02-24 14:46:15 +0000 |
commit | f051066bc451479a0c2ff44e2554941628a62f6a (patch) | |
tree | 239197109c12b15a24e9ae8ab70a7549e34d4a8b /src/saveload | |
parent | c1e2bc90cd3751dfa316519cfe2f558aa2697b2c (diff) | |
download | openttd-f051066bc451479a0c2ff44e2554941628a62f6a.tar.xz |
(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/saveload.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index 0d081df73..7a9c81e98 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -1743,7 +1743,7 @@ const char *GetSaveLoadErrorString() static void SaveFileError() { SetDParamStr(0, GetSaveLoadErrorString()); - ShowErrorMessage(STR_JUST_RAW_STRING, INVALID_STRING_ID, 0, 0); + ShowErrorMessage(STR_JUST_RAW_STRING, INVALID_STRING_ID, WL_ERROR); SaveFileDone(); } @@ -1833,7 +1833,7 @@ SaveOrLoadResult SaveOrLoad(const char *filename, int mode, Subdirectory sb, boo /* An instance of saving is already active, so don't go saving again */ if (_ts.saveinprogress && mode == SL_SAVE) { /* if not an autosave, but a user action, show error message */ - if (!_do_autosave) ShowErrorMessage(STR_ERROR_SAVE_STILL_IN_PROGRESS, INVALID_STRING_ID, 0, 0); + if (!_do_autosave) ShowErrorMessage(STR_ERROR_SAVE_STILL_IN_PROGRESS, INVALID_STRING_ID, WL_ERROR); return SL_OK; } WaitTillSaved(); |