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 | 419f6e099f3b32a8b1f988dd7c912754589bf6d5 (patch) | |
tree | c063679e6b2160162b5c0ab232ae441833698e1d /src/ship_cmd.cpp | |
parent | 2e2086f3f884487b4f456bd4b4c1e21f96987b59 (diff) | |
download | openttd-419f6e099f3b32a8b1f988dd7c912754589bf6d5.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/ship_cmd.cpp')
-rw-r--r-- | src/ship_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index bb3b8f83d..b93433514 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -237,7 +237,7 @@ TileIndex Ship::GetOrderStationLocation(StationID station) if (station == this->last_station_visited) this->last_station_visited = INVALID_STATION; const Station *st = GetStation(station); - if (st->dock_tile != 0) { + if (st->dock_tile != INVALID_TILE) { return TILE_ADD(st->dock_tile, ToTileIndexDiff(GetDockOffset(st->dock_tile))); } else { this->cur_order_index++; |