equal
deleted
inserted
replaced
202 |
202 |
203 v->type = VEH_Road; |
203 v->type = VEH_Road; |
204 v->cur_image = 0xC15; |
204 v->cur_image = 0xC15; |
205 v->random_bits = VehicleRandomBits(); |
205 v->random_bits = VehicleRandomBits(); |
206 |
206 |
|
207 v->vehicle_flags = 0; |
|
208 if (e->flags & ENGINE_EXCLUSIVE_PREVIEW) SETBIT(v->vehicle_flags, VF_BUILT_AS_PROTOTYPE); |
|
209 |
207 VehiclePositionChanged(v); |
210 VehiclePositionChanged(v); |
208 |
211 |
209 InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile); |
212 InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile); |
210 RebuildVehicleLists(); |
213 RebuildVehicleLists(); |
211 InvalidateWindow(WC_COMPANY, v->owner); |
214 InvalidateWindow(WC_COMPANY, v->owner); |