vehicle.c
changeset 3132 724ede39bda9
parent 3113 c0f312f22238
child 3139 4c950c7ec5c9
equal deleted inserted replaced
3131:e856656f99a9 3132:724ede39bda9
   686  * @return true if it is possible, false otherwise
   686  * @return true if it is possible, false otherwise
   687  */
   687  */
   688 bool CanRefitTo(EngineID engine_type, CargoID cid_to)
   688 bool CanRefitTo(EngineID engine_type, CargoID cid_to)
   689 {
   689 {
   690 	CargoID cid = _global_cargo_id[_opt_ptr->landscape][cid_to];
   690 	CargoID cid = _global_cargo_id[_opt_ptr->landscape][cid_to];
   691 	return HASBIT(_engine_info[engine_type].refit_mask, cid) != 0;
   691 	return HASBIT(_engine_info[engine_type].refit_mask, cid);
   692 }
   692 }
   693 
   693 
   694 static void DoDrawVehicle(const Vehicle *v)
   694 static void DoDrawVehicle(const Vehicle *v)
   695 {
   695 {
   696 	uint32 image = v->cur_image;
   696 	uint32 image = v->cur_image;