equal
deleted
inserted
replaced
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 { |