mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-23 20:24:12 +01:00
(svn r18476) [0.7] -Backport from trunk:
- Fix: (Invalid) GRFs could trigger invalid reads (r18391) - Fix: One could not share orders between buses carrying different cargos (r18380) - Fix: Off-by-one in the preconfigured music lists [FS#3339] (r18369) - Change [FS#3349]: Recolour the bubble generator just like any other industry (r18409) - Add: Some missing latin-ish characters from the OpenGFX set (r18431)
This commit is contained in:
@@ -1094,9 +1094,8 @@ CommandCost CmdCloneOrder(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
|
||||
return CMD_ERROR;
|
||||
|
||||
/* Trucks can't share orders with busses (and visa versa) */
|
||||
if (src->type == VEH_ROAD) {
|
||||
if (src->cargo_type != dst->cargo_type && (IsCargoInClass(src->cargo_type, CC_PASSENGERS) || IsCargoInClass(dst->cargo_type, CC_PASSENGERS)))
|
||||
return CMD_ERROR;
|
||||
if (src->type == VEH_ROAD && IsCargoInClass(src->cargo_type, CC_PASSENGERS) != IsCargoInClass(dst->cargo_type, CC_PASSENGERS)) {
|
||||
return CMD_ERROR;
|
||||
}
|
||||
|
||||
/* Is the vehicle already in the shared list? */
|
||||
|
||||
Reference in New Issue
Block a user