mirror of https://github.com/OpenTTD/OpenTTD
Fix #13703: Don't set error owner for town-originated errors.
parent
7f674b09a4
commit
c2f8ec8371
|
@ -2517,7 +2517,6 @@ CommandCost CmdConvertRoad(DoCommandFlags flags, TileIndex tile, TileIndex area_
|
|||
if (IsLocalCompany()) {
|
||||
auto params = GetParamsForOwnedBy(OWNER_TOWN, tile);
|
||||
error.SetEncodedMessage(GetEncodedStringWithArgs(STR_ERROR_OWNED_BY, params));
|
||||
error.SetErrorOwner(owner);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
@ -2574,7 +2573,6 @@ CommandCost CmdConvertRoad(DoCommandFlags flags, TileIndex tile, TileIndex area_
|
|||
if (IsLocalCompany()) {
|
||||
auto params = GetParamsForOwnedBy(OWNER_TOWN, tile);
|
||||
error.SetEncodedMessage(GetEncodedStringWithArgs(STR_ERROR_OWNED_BY, params));
|
||||
error.SetErrorOwner(owner);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue