diff options
author | PeterN <peter@fuzzle.org> | 2018-05-21 22:08:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-21 22:08:39 +0100 |
commit | 4cebebcf683b079ff010e70b0a0a78c12734933e (patch) | |
tree | 4f140272bd8c1efba4916a642b85a22f153cb7b4 /src/vehicle_gui.cpp | |
parent | 42b43c998314a3fcd89aa59ad7834104dd80b053 (diff) | |
download | openttd-4cebebcf683b079ff010e70b0a0a78c12734933e.tar.xz |
Change: Add CargoTypes type for cargo masks. (#6790)
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 62205ee5a..667836f56 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -416,7 +416,7 @@ struct RefitWindow : public Window { do { if (v->type == VEH_TRAIN && !vehicles_to_refit.Contains(v->index)) continue; const Engine *e = v->GetEngine(); - uint32 cmask = e->info.refit_mask; + CargoTypes cmask = e->info.refit_mask; byte callback_mask = e->info.callback_mask; /* Skip this engine if it does not carry anything */ @@ -1043,9 +1043,9 @@ void ShowVehicleRefitWindow(const Vehicle *v, VehicleOrderID order, Window *pare uint ShowRefitOptionsList(int left, int right, int y, EngineID engine) { /* List of cargo types of this engine */ - uint32 cmask = GetUnionOfArticulatedRefitMasks(engine, false); + CargoTypes cmask = GetUnionOfArticulatedRefitMasks(engine, false); /* List of cargo types available in this climate */ - uint32 lmask = _cargo_mask; + CargoTypes lmask = _cargo_mask; /* Draw nothing if the engine is not refittable */ if (HasAtMostOneBit(cmask)) return y; |