From 345f160978ada62ad59cb8f9d34c135a536ccbb1 Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 24 Apr 2008 13:05:51 +0000 Subject: (svn r12870) -Codechange: remove some magic numbers from u.ship.state handling --- src/ship.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ship.h') diff --git a/src/ship.h b/src/ship.h index 7f7353642..f433c065d 100644 --- a/src/ship.h +++ b/src/ship.h @@ -38,7 +38,7 @@ struct Ship: public Vehicle { int GetDisplaySpeed() const { return this->cur_speed * 10 / 32; } int GetDisplayMaxSpeed() const { return this->max_speed * 10 / 32; } Money GetRunningCost() const { return ShipVehInfo(this->engine_type)->running_cost * _price.ship_running; } - bool IsInDepot() const { return this->u.ship.state == 0x80; } + bool IsInDepot() const { return this->u.ship.state == TRACK_BIT_DEPOT; } void Tick(); void OnNewDay(); TileIndex GetOrderStationLocation(StationID station); -- cgit v1.2.3-54-g00ecf