Merge branch 'cargo_type_order' into jgrpp
# Conflicts: # src/pathfinder/yapf/yapf_common.hpp # src/saveload/extended_ver_sl.cpp # src/saveload/order_sl.cpp # src/saveload/station_sl.cpp # src/track_func.h
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
*/
|
||||
class LinkRefresher {
|
||||
public:
|
||||
static void Run(Vehicle *v, bool allow_merge = true, bool is_full_loading = false, uint32 cargo_mask = ~0);
|
||||
static void Run(Vehicle *v, bool allow_merge = true, bool is_full_loading = false, CargoTypes cargo_mask = ALL_CARGOTYPES);
|
||||
|
||||
protected:
|
||||
/**
|
||||
@@ -89,9 +89,9 @@ protected:
|
||||
CargoID cargo; ///< Cargo given in last refit order.
|
||||
bool allow_merge; ///< If the refresher is allowed to merge or extend link graphs.
|
||||
bool is_full_loading; ///< If the vehicle is full loading.
|
||||
uint32 cargo_mask; ///< Bit-mask of cargo IDs to refresh.
|
||||
CargoTypes cargo_mask; ///< Bit-mask of cargo IDs to refresh.
|
||||
|
||||
LinkRefresher(Vehicle *v, HopSet *seen_hops, bool allow_merge, bool is_full_loading, uint32 cargo_mask);
|
||||
LinkRefresher(Vehicle *v, HopSet *seen_hops, bool allow_merge, bool is_full_loading, CargoTypes cargo_mask);
|
||||
|
||||
bool HandleRefit(CargoID refit_cargo);
|
||||
void ResetRefit();
|
||||
|
Reference in New Issue
Block a user