Codechange: Use EncodedString for error messages. (#13569)
This commit is contained in:
@@ -2580,8 +2580,7 @@ CommandCost CmdBuildAirport(DoCommandFlags flags, TileIndex tile, uint8_t airpor
|
||||
}
|
||||
|
||||
if (authority_refuse_message != STR_NULL) {
|
||||
SetDParam(0, authority_refuse_town->index);
|
||||
return CommandCost(authority_refuse_message);
|
||||
return CommandCostWithParam(authority_refuse_message, authority_refuse_town->index);
|
||||
}
|
||||
|
||||
Station *st = nullptr;
|
||||
@@ -4709,8 +4708,7 @@ CommandCost ClearTile_Station(TileIndex tile, DoCommandFlags flags)
|
||||
case StationType::Buoy: return CommandCost(STR_ERROR_BUOY_IN_THE_WAY);
|
||||
case StationType::Dock: return CommandCost(STR_ERROR_MUST_DEMOLISH_DOCK_FIRST);
|
||||
case StationType::Oilrig:
|
||||
SetDParam(1, STR_INDUSTRY_NAME_OIL_RIG);
|
||||
return CommandCost(STR_ERROR_GENERIC_OBJECT_IN_THE_WAY);
|
||||
return CommandCostWithParam(STR_ERROR_GENERIC_OBJECT_IN_THE_WAY, STR_INDUSTRY_NAME_OIL_RIG);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user