1
0
Fork 0

Change: Adapt IsInDepot() for ships.

pull/8480/head
Juanjo 2013-12-27 18:50:44 +00:00 committed by J0anJosep
parent 037d8c6149
commit f713a3525d
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ struct Ship final : public SpecializedVehicle<Ship, VEH_SHIP> {
int GetDisplayMaxSpeed() const override { return this->vcache.cached_max_speed / 2; }
int GetCurrentMaxSpeed() const override { return std::min<int>(this->vcache.cached_max_speed, this->current_order.GetMaxSpeed() * 2); }
Money GetRunningCost() const override;
bool IsInDepot() const override { return this->state == TRACK_BIT_DEPOT; }
bool IsInDepot() const override { return HasBit((uint8_t)this->state, TRACK_DEPOT); }
bool Tick() override;
void OnNewCalendarDay() override;
void OnNewEconomyDay() override;