Changeset - r4708:dc808bf3ddb7
[Not reviewed]
master
0 1 0
peter1138 - 18 years ago 2006-10-02 22:10:04
peter1138@openttd.org
(svn r6618) - After refitting a train, update its cached variables as they may change.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -1842,6 +1842,9 @@ int32 CmdRefitRailVehicle(TileIndex tile
 

	
 
	_returned_refit_capacity = num;
 

	
 
	/* Update the train's cached variables */
 
	if (flags & DC_EXEC) TrainConsistChanged(GetVehicle(p1));
 

	
 
	return cost;
 
}
 

	
0 comments (0 inline, 0 general)