src/train_gui.cpp
changeset 7321 f91bdca345e8
parent 7266 b16e67e992b4
child 7341 02515d0d4ced
equal deleted inserted replaced
7320:96d5862ec06a 7321:f91bdca345e8
    67 /**
    67 /**
    68  * Get the number of pixels for the given wagon length.
    68  * Get the number of pixels for the given wagon length.
    69  * @param len Length measured in 1/8ths of a standard wagon.
    69  * @param len Length measured in 1/8ths of a standard wagon.
    70  * @return Number of pixels across.
    70  * @return Number of pixels across.
    71  */
    71  */
    72 int WagonLengthToPixels(int len) {
    72 int WagonLengthToPixels(int len)
       
    73 {
    73 	return (len * _traininfo_vehicle_width) / 8;
    74 	return (len * _traininfo_vehicle_width) / 8;
    74 }
    75 }
    75 
    76 
    76 void DrawTrainImage(const Vehicle *v, int x, int y, int count, int skip, VehicleID selection)
    77 void DrawTrainImage(const Vehicle *v, int x, int y, int count, int skip, VehicleID selection)
    77 {
    78 {