summaryrefslogtreecommitdiff
path: root/src/articulated_vehicles.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-01-07 17:50:20 +0000
committerfrosch <frosch@openttd.org>2009-01-07 17:50:20 +0000
commitaedc0c13021b72be9aa19435b8594ed1d15f981b (patch)
tree9f75258b731a5d94d6680a4e4b41af36514bbc93 /src/articulated_vehicles.cpp
parentcf1e926e371f91628a6048adc0d62f129a0d84ab (diff)
downloadopenttd-aedc0c13021b72be9aa19435b8594ed1d15f981b.tar.xz
(svn r14903) -Fix: First create all articulated parts of roadvehicles, then call callback 36 capacity, also call it for all articulated parts.
Diffstat (limited to 'src/articulated_vehicles.cpp')
-rw-r--r--src/articulated_vehicles.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/articulated_vehicles.cpp b/src/articulated_vehicles.cpp
index f959da77e..9f2e05bc0 100644
--- a/src/articulated_vehicles.cpp
+++ b/src/articulated_vehicles.cpp
@@ -277,7 +277,7 @@ void AddArticulatedParts(Vehicle **vl, VehicleType type)
u->spritenum = rvi_artic->image_index;
u->cargo_type = rvi_artic->cargo_type;
- u->cargo_cap = rvi_artic->capacity;
+ u->cargo_cap = rvi_artic->capacity; // Callback 36 is called when the consist is finished
SetArticulatedPart(u);
} break;
@@ -296,7 +296,7 @@ void AddArticulatedParts(Vehicle **vl, VehicleType type)
u->spritenum = rvi_artic->image_index;
u->cargo_type = rvi_artic->cargo_type;
- u->cargo_cap = rvi_artic->capacity;
+ u->cargo_cap = rvi_artic->capacity; // Callback 36 is called when the consist is finished
SetRoadVehArticPart(u);
} break;