diff options
author | yexo <yexo@openttd.org> | 2012-01-15 19:29:49 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2012-01-15 19:29:49 +0000 |
commit | fab78a7bf2a900bc64de69a7dcdb4e558e2a1824 (patch) | |
tree | ef190938984d1ba6d560c86b916cecda76fd4e03 /src/newgrf_gui.cpp | |
parent | c42e30927d497e52efab09caadcf1e8e624962d9 (diff) | |
download | openttd-fab78a7bf2a900bc64de69a7dcdb4e558e2a1824.tar.xz |
(svn r23812) -Fix [FS#4977] (r23804): custom ActionB messages were broken
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index ed3dbe6cc..f39b30817 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -46,12 +46,10 @@ void ShowNewGRFError() SetDParam (0, c->error->custom_message == NULL ? c->error->message : STR_JUST_RAW_STRING); SetDParamStr(1, c->error->custom_message); - SetDParam (2, STR_JUST_RAW_STRING); - SetDParamStr(3, c->filename); - SetDParam (4, STR_JUST_RAW_STRING); - SetDParamStr(5, c->error->data); + SetDParamStr(2, c->filename); + SetDParamStr(3, c->error->data); for (uint i = 0; i < lengthof(c->error->param_value); i++) { - SetDParam(6 + i, c->error->param_value[i]); + SetDParam(4 + i, c->error->param_value[i]); } ShowErrorMessage(STR_NEWGRF_ERROR_FATAL_POPUP, INVALID_STRING_ID, WL_CRITICAL); break; @@ -63,12 +61,10 @@ static void ShowNewGRFInfo(const GRFConfig *c, uint x, uint y, uint right, uint if (c->error != NULL) { char message[512]; SetDParamStr(0, c->error->custom_message); // is skipped by built-in messages - SetDParam (1, STR_JUST_RAW_STRING); - SetDParamStr(2, c->filename); - SetDParam (3, STR_JUST_RAW_STRING); - SetDParamStr(4, c->error->data); + SetDParamStr(1, c->filename); + SetDParamStr(2, c->error->data); for (uint i = 0; i < lengthof(c->error->param_value); i++) { - SetDParam(5 + i, c->error->param_value[i]); + SetDParam(3 + i, c->error->param_value[i]); } GetString(message, c->error->custom_message == NULL ? c->error->message : STR_JUST_RAW_STRING, lastof(message)); |