src/roadveh_cmd.cpp
changeset 6176 153f0f24dc1b
parent 6175 313c2b5e7ae2
child 6247 7d81e3a5d803
equal deleted inserted replaced
6175:313c2b5e7ae2 6176:153f0f24dc1b
   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);