(svn r14903) -Fix: First create all articulated parts of roadvehicles, then call callback 36 capacity, also call it for all articulated parts.

This commit is contained in:
frosch
2009-01-07 17:50:20 +00:00
parent cf1e926e37
commit aedc0c1302
2 changed files with 8 additions and 3 deletions

View File

@@ -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;