|
|
|
@ -55,7 +55,7 @@ void ShowNewGRFError()
|
|
|
|
|
SetDParamStr(2, c->error->custom_message);
|
|
|
|
|
SetDParamStr(3, c->filename);
|
|
|
|
|
SetDParamStr(4, c->error->data);
|
|
|
|
|
for (uint i = 0; i < lengthof(c->error->param_value); i++) {
|
|
|
|
|
for (uint i = 0; i < c->error->param_value.size(); i++) {
|
|
|
|
|
SetDParam(5 + i, c->error->param_value[i]);
|
|
|
|
|
}
|
|
|
|
|
if (c->error->severity == STR_NEWGRF_ERROR_MSG_FATAL) {
|
|
|
|
@ -75,7 +75,7 @@ static void ShowNewGRFInfo(const GRFConfig *c, const Rect &r, bool show_params)
|
|
|
|
|
SetDParamStr(0, c->error->custom_message); // is skipped by built-in messages
|
|
|
|
|
SetDParamStr(1, c->filename);
|
|
|
|
|
SetDParamStr(2, c->error->data);
|
|
|
|
|
for (uint i = 0; i < lengthof(c->error->param_value); i++) {
|
|
|
|
|
for (uint i = 0; i < c->error->param_value.size(); i++) {
|
|
|
|
|
SetDParam(3 + i, c->error->param_value[i]);
|
|
|
|
|
}
|
|
|
|
|
GetString(message, c->error->message != STR_NULL ? c->error->message : STR_JUST_RAW_STRING, lastof(message));
|
|
|
|
|