mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-26 16:09:10 +00:00
Add: Use track depot for detecting trains in depots.
This commit is contained in:
@@ -120,7 +120,7 @@ struct Train final : public GroundVehicle<Train, VEH_TRAIN> {
|
||||
Money GetRunningCost() const override;
|
||||
int GetCursorImageOffset() const;
|
||||
int GetDisplayImageWidth(Point *offset = nullptr) const;
|
||||
bool IsInDepot() const override { return this->track == TRACK_BIT_DEPOT; }
|
||||
bool IsInDepot() const override { return HasBit((uint8_t)this->track, TRACK_DEPOT); }
|
||||
bool Tick() override;
|
||||
void OnNewCalendarDay() override;
|
||||
void OnNewEconomyDay() override;
|
||||
|
Reference in New Issue
Block a user