forked from mirror/OpenTTD
(svn r26317) -Fix [FS#5897]: Check whether NewGRF change vehicle capacity when they are not supposed to, and truncate cargo appropiately if they are allowed to.
This commit is contained in:
@@ -463,7 +463,7 @@ CommandCost CmdRefitVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
|
||||
/* Update the cached variables */
|
||||
switch (v->type) {
|
||||
case VEH_TRAIN:
|
||||
Train::From(front)->ConsistChanged(auto_refit);
|
||||
Train::From(front)->ConsistChanged(auto_refit ? CCF_AUTOREFIT : CCF_REFIT);
|
||||
break;
|
||||
case VEH_ROAD:
|
||||
RoadVehUpdateCache(RoadVehicle::From(front), auto_refit);
|
||||
|
Reference in New Issue
Block a user