diff options
author | smatz <smatz@openttd.org> | 2008-12-26 18:01:15 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-12-26 18:01:15 +0000 |
commit | c88a6199a7dfc45668da893021d072d4eac6fc5d (patch) | |
tree | c063679e6b2160162b5c0ab232ae441833698e1d /src/train_cmd.cpp | |
parent | bd92143e7bbf9f48008da45fe2c40857f84c3e5c (diff) | |
download | openttd-c88a6199a7dfc45668da893021d072d4eac6fc5d.tar.xz |
(svn r14743) -Codechange: use INVALID_TILE to indicate station doesn't have queried facility (or station/roadstop is invalid) instead of 0 (Yexo)
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 80ead8107..50f50b137 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -4447,7 +4447,7 @@ void Train::OnNewDay() /* update destination */ if (this->current_order.IsType(OT_GOTO_STATION)) { TileIndex tile = GetStation(this->current_order.GetDestination())->train_tile; - if (tile != 0) this->dest_tile = tile; + if (tile != INVALID_TILE) this->dest_tile = tile; } if (this->running_ticks != 0) { |