summaryrefslogtreecommitdiff
path: root/src/ship.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-04-24 13:05:51 +0000
committersmatz <smatz@openttd.org>2008-04-24 13:05:51 +0000
commit0a83a43075d7fefb7376ad4278080248fc496273 (patch)
tree4aeca38f1ed816119df449a6876e357e9df79dbd /src/ship.h
parent26cea31b1e7803acb2aa059e302fef8bef35e658 (diff)
downloadopenttd-0a83a43075d7fefb7376ad4278080248fc496273.tar.xz
(svn r12870) -Codechange: remove some magic numbers from u.ship.state handling
Diffstat (limited to 'src/ship.h')
-rw-r--r--src/ship.h2
1 files changed, 1 insertions, 1 deletions
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);