1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 14:02:59 +01:00

Explicitly pass formatter arguments to ShowError and family

This commit is contained in:
Matt
2020-08-27 00:01:15 +02:00
parent 2639349925
commit ccde06ab0f
32 changed files with 152 additions and 146 deletions

View File

@@ -497,7 +497,7 @@ static void window_editor_objective_options_arg_1_increase(rct_window* w)
case OBJECTIVE_REPLAY_LOAN_AND_PARK_VALUE:
if (gScenarioObjective.Currency >= MONEY(2000000, 00))
{
context_show_error(STR_CANT_INCREASE_FURTHER, STR_NONE);
context_show_error(STR_CANT_INCREASE_FURTHER, STR_NONE, {});
}
else
{
@@ -508,7 +508,7 @@ static void window_editor_objective_options_arg_1_increase(rct_window* w)
case OBJECTIVE_MONTHLY_FOOD_INCOME:
if (gScenarioObjective.Currency >= MONEY(2000000, 00))
{
context_show_error(STR_CANT_INCREASE_FURTHER, STR_NONE);
context_show_error(STR_CANT_INCREASE_FURTHER, STR_NONE, {});
}
else
{
@@ -519,7 +519,7 @@ static void window_editor_objective_options_arg_1_increase(rct_window* w)
case OBJECTIVE_10_ROLLERCOASTERS_LENGTH:
if (gScenarioObjective.MinimumLength >= 5000)
{
context_show_error(STR_CANT_INCREASE_FURTHER, STR_NONE);
context_show_error(STR_CANT_INCREASE_FURTHER, STR_NONE, {});
}
else
{
@@ -530,7 +530,7 @@ static void window_editor_objective_options_arg_1_increase(rct_window* w)
case OBJECTIVE_FINISH_5_ROLLERCOASTERS:
if (gScenarioObjective.MinimumExcitement >= FIXED_2DP(9, 90))
{
context_show_error(STR_CANT_INCREASE_FURTHER, STR_NONE);
context_show_error(STR_CANT_INCREASE_FURTHER, STR_NONE, {});
}
else
{
@@ -541,7 +541,7 @@ static void window_editor_objective_options_arg_1_increase(rct_window* w)
default:
if (gScenarioObjective.NumGuests >= 5000)
{
context_show_error(STR_CANT_INCREASE_FURTHER, STR_NONE);
context_show_error(STR_CANT_INCREASE_FURTHER, STR_NONE, {});
}
else
{
@@ -561,7 +561,7 @@ static void window_editor_objective_options_arg_1_decrease(rct_window* w)
case OBJECTIVE_REPLAY_LOAN_AND_PARK_VALUE:
if (gScenarioObjective.Currency <= MONEY(1000, 00))
{
context_show_error(STR_CANT_REDUCE_FURTHER, STR_NONE);
context_show_error(STR_CANT_REDUCE_FURTHER, STR_NONE, {});
}
else
{
@@ -572,7 +572,7 @@ static void window_editor_objective_options_arg_1_decrease(rct_window* w)
case OBJECTIVE_MONTHLY_FOOD_INCOME:
if (gScenarioObjective.Currency <= MONEY(1000, 00))
{
context_show_error(STR_CANT_REDUCE_FURTHER, STR_NONE);
context_show_error(STR_CANT_REDUCE_FURTHER, STR_NONE, {});
}
else
{
@@ -583,7 +583,7 @@ static void window_editor_objective_options_arg_1_decrease(rct_window* w)
case OBJECTIVE_10_ROLLERCOASTERS_LENGTH:
if (gScenarioObjective.MinimumLength <= 1000)
{
context_show_error(STR_CANT_REDUCE_FURTHER, STR_NONE);
context_show_error(STR_CANT_REDUCE_FURTHER, STR_NONE, {});
}
else
{
@@ -594,7 +594,7 @@ static void window_editor_objective_options_arg_1_decrease(rct_window* w)
case OBJECTIVE_FINISH_5_ROLLERCOASTERS:
if (gScenarioObjective.MinimumExcitement <= FIXED_2DP(4, 00))
{
context_show_error(STR_CANT_REDUCE_FURTHER, STR_NONE);
context_show_error(STR_CANT_REDUCE_FURTHER, STR_NONE, {});
}
else
{
@@ -605,7 +605,7 @@ static void window_editor_objective_options_arg_1_decrease(rct_window* w)
default:
if (gScenarioObjective.NumGuests <= 250)
{
context_show_error(STR_CANT_REDUCE_FURTHER, STR_NONE);
context_show_error(STR_CANT_REDUCE_FURTHER, STR_NONE, {});
}
else
{
@@ -620,7 +620,7 @@ static void window_editor_objective_options_arg_2_increase(rct_window* w)
{
if (gScenarioObjective.Year >= 25)
{
context_show_error(STR_CANT_INCREASE_FURTHER, STR_NONE);
context_show_error(STR_CANT_INCREASE_FURTHER, STR_NONE, {});
}
else
{
@@ -633,7 +633,7 @@ static void window_editor_objective_options_arg_2_decrease(rct_window* w)
{
if (gScenarioObjective.Year <= 1)
{
context_show_error(STR_CANT_REDUCE_FURTHER, STR_NONE);
context_show_error(STR_CANT_REDUCE_FURTHER, STR_NONE, {});
}
else
{