Refactor Link Refresher cargo mask handling.
Add some separate helper functions. Move cargo checks out of LinkRefresher::Run.
This commit is contained in:
@@ -279,6 +279,8 @@ public:
|
||||
/** We want to 'destruct' the right class. */
|
||||
virtual ~Vehicle();
|
||||
|
||||
uint32 GetLastLoadingStationValidCargoMask() const;
|
||||
|
||||
void BeginLoading();
|
||||
void CancelReservation(StationID next, Station *st);
|
||||
void LeaveStation();
|
||||
|
||||
Reference in New Issue
Block a user