|
@@ -47,13 +47,13 @@ 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);
|
|
|
for (uint i = 0; i < c->error->num_params; i++) {
|
|
|
for (uint i = 0; i < lengthof(c->error->param_value); i++) {
|
|
|
SetDParam(6 + i, c->error->param_value[i]);
|
|
|
}
|
|
|
ShowErrorMessage(STR_NEWGRF_ERROR_FATAL_POPUP, INVALID_STRING_ID, WL_CRITICAL);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -64,13 +64,13 @@ static void ShowNewGRFInfo(const GRFConf
|
|
|
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);
|
|
|
for (uint i = 0; i < c->error->num_params; i++) {
|
|
|
for (uint i = 0; i < lengthof(c->error->param_value); i++) {
|
|
|
SetDParam(5 + i, c->error->param_value[i]);
|
|
|
}
|
|
|
GetString(message, c->error->custom_message == NULL ? c->error->message : STR_JUST_RAW_STRING, lastof(message));
|
|
|
|
|
|
SetDParamStr(0, message);
|
|
|
y = DrawStringMultiLine(x, right, y, bottom, c->error->severity);
|