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
 
@@ -1839,12 +1839,15 @@ int32 CmdRefitRailVehicle(TileIndex tile
 
			}
 
		}
 
	} while ((v = v->next) != NULL);
 

	
 
	_returned_refit_capacity = num;
 

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

	
 
	return cost;
 
}
 

	
 
typedef struct TrainFindDepotData {
 
	uint best_length;
 
	TileIndex tile;
0 comments (0 inline, 0 general)