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