Codechange: Use EncodedString for error messages. (#13569)
This commit is contained in:
@@ -385,8 +385,7 @@ CommandCost CmdBuildBridge(DoCommandFlags flags, TileIndex tile_end, TileIndex t
|
||||
if (t == nullptr) return CMD_ERROR;
|
||||
|
||||
if (GetBridgeSpec(bridge_type)->speed < GetBridgeSpec(GetBridgeType(tile_start))->speed) {
|
||||
SetDParam(0, t->index);
|
||||
return CommandCost(STR_ERROR_LOCAL_AUTHORITY_REFUSES_TO_ALLOW_THIS);
|
||||
return CommandCostWithParam(STR_ERROR_LOCAL_AUTHORITY_REFUSES_TO_ALLOW_THIS, t->index);
|
||||
} else {
|
||||
ChangeTownRating(t, RATING_TUNNEL_BRIDGE_UP_STEP, RATING_MAXIMUM, flags);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user