diff options
author | tron <tron@openttd.org> | 2005-01-29 15:12:40 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-29 15:12:40 +0000 |
commit | 97ae59fe1a0248b95dbfff27f84cfeb87742f050 (patch) | |
tree | e38584a427c9b3f39a3b8dc39ada303239edb4fa /vehicle.c | |
parent | 797355cb7ea1e4e33b20a64bdb3de6b1a492eeab (diff) | |
download | openttd-97ae59fe1a0248b95dbfff27f84cfeb87742f050.tar.xz |
(svn r1718) Use the enum TileType as parameter/return type for [GS]etTileType() instead of plain int.
This makes it necessary to rename TileType() to GetTileType() because a type and a function may not share the same name.
Diffstat (limited to 'vehicle.c')
-rw-r--r-- | vehicle.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1733,13 +1733,13 @@ byte GetDirectionTowards(Vehicle *v, int x, int y) uint32 VehicleEnterTile(Vehicle *v, uint tile, int x, int y) { uint old_tile = v->tile; - uint32 result = _tile_type_procs[TileType(tile)]->vehicle_enter_tile_proc(v, tile, x, y); + uint32 result = _tile_type_procs[GetTileType(tile)]->vehicle_enter_tile_proc(v, tile, x, y); /* When vehicle_enter_tile_proc returns 8, that apparently means that * we cannot enter the tile at all. In that case, don't call * leave_tile. */ if (!(result & 8) && old_tile != tile) { - VehicleLeaveTileProc *proc = _tile_type_procs[TileType(old_tile)]->vehicle_leave_tile_proc; + VehicleLeaveTileProc *proc = _tile_type_procs[GetTileType(old_tile)]->vehicle_leave_tile_proc; if (proc != NULL) proc(v, old_tile, x, y); } |