diff options
author | rubidium <rubidium@openttd.org> | 2007-02-13 10:26:53 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-02-13 10:26:53 +0000 |
commit | a419f4aedadc526377d24e30bfd967e29255498e (patch) | |
tree | a8d30d13565c6ebb15b7a0857e33c317d033e666 /src/vehicle.cpp | |
parent | eab6dd989821a2cacb96a94de0da789214f6e2b4 (diff) | |
download | openttd-a419f4aedadc526377d24e30bfd967e29255498e.tar.xz |
(svn r8698) -Codechange: enumify the returns of VehicleEnterTile
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index bdee6fcd5..5f6fe6a52 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2769,10 +2769,11 @@ Trackdir GetVehicleTrackdir(const Vehicle* v) default: return INVALID_TRACKDIR; } } -/* Return value has bit 0x2 set, when the vehicle enters a station. Then, - * result << 8 contains the id of the station entered. If the return value has - * bit 0x8 set, the vehicle could not and did not enter the tile. Are there - * other bits that can be set? */ + +/** + * Returns some meta-data over the to be entered tile. + * @see VehicleEnterTileStatus to see what the bits in the return value mean. + */ uint32 VehicleEnterTile(Vehicle *v, TileIndex tile, int x, int y) { return _tile_type_procs[GetTileType(tile)]->vehicle_enter_tile_proc(v, tile, x, y); |