equal
deleted
inserted
replaced
80 |
80 |
81 /* Reliability */ |
81 /* Reliability */ |
82 SetDParam(0, e->reliability * 100 >> 16); |
82 SetDParam(0, e->reliability * 100 >> 16); |
83 DrawString(x,y, STR_PURCHASE_INFO_RELIABILITY, 0); |
83 DrawString(x,y, STR_PURCHASE_INFO_RELIABILITY, 0); |
84 y += 10; |
84 y += 10; |
|
85 |
|
86 /* Additional text from NewGRF */ |
|
87 // XXX 227 will become a calculated width... |
|
88 y += ShowAdditionalText(x, y, 227, engine_number); |
85 } |
89 } |
86 |
90 |
87 /** |
91 /** |
88 * Draw the purchase info details of a train wagon at a given location. |
92 * Draw the purchase info details of a train wagon at a given location. |
89 * @param x,y location where to draw the info |
93 * @param x,y location where to draw the info |
116 if (rvi->max_speed > 0 && _patches.wagon_speed_limits) { |
120 if (rvi->max_speed > 0 && _patches.wagon_speed_limits) { |
117 SetDParam(0, rvi->max_speed); |
121 SetDParam(0, rvi->max_speed); |
118 DrawString(x,y, STR_PURCHASE_INFO_SPEED, 0); |
122 DrawString(x,y, STR_PURCHASE_INFO_SPEED, 0); |
119 y += 10; |
123 y += 10; |
120 } |
124 } |
|
125 |
|
126 /* Additional text from NewGRF */ |
|
127 y += ShowAdditionalText(x, y, 227, engine_number); |
121 } |
128 } |
122 |
129 |
123 void CcBuildWagon(bool success, TileIndex tile, uint32 p1, uint32 p2) |
130 void CcBuildWagon(bool success, TileIndex tile, uint32 p1, uint32 p2) |
124 { |
131 { |
125 Vehicle *v,*found; |
132 Vehicle *v,*found; |