(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
This commit is contained in:
@@ -1697,7 +1697,7 @@ const char *GetSaveLoadErrorString()
|
||||
static void SaveFileError()
|
||||
{
|
||||
SetDParamStr(0, GetSaveLoadErrorString());
|
||||
ShowErrorMessage(STR_JUST_RAW_STRING, STR_NULL, 0, 0);
|
||||
ShowErrorMessage(STR_NULL, STR_JUST_RAW_STRING, 0, 0);
|
||||
SaveFileDone();
|
||||
}
|
||||
|
||||
@@ -1791,7 +1791,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(INVALID_STRING_ID, STR_ERROR_SAVE_STILL_IN_PROGRESS, 0, 0);
|
||||
if (!_do_autosave) ShowErrorMessage(STR_ERROR_SAVE_STILL_IN_PROGRESS, INVALID_STRING_ID, 0, 0);
|
||||
return SL_OK;
|
||||
}
|
||||
WaitTillSaved();
|
||||
|
Reference in New Issue
Block a user