diff options
author | rubidium <rubidium@openttd.org> | 2007-07-26 16:51:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-26 16:51:10 +0000 |
commit | d624f66c794109a22787685a3aa53d6cf35a02ba (patch) | |
tree | 4b6a986aa841f12efff161e45aacd1a023cff71d /src/openttd.h | |
parent | 5bd241eb5b151dd9a5ebda0a93aff8740713ce62 (diff) | |
download | openttd-d624f66c794109a22787685a3aa53d6cf35a02ba.tar.xz |
(svn r10698) -Codechange [FS#1082]: simplify the code related to foundations. Primarily removal of (duplicated|magic) code and introduction of few helper functions to ease foundation determination. Patch by frosch.
Diffstat (limited to 'src/openttd.h')
-rw-r--r-- | src/openttd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openttd.h b/src/openttd.h index b9c740a7a..7daf5b772 100644 --- a/src/openttd.h +++ b/src/openttd.h @@ -472,7 +472,7 @@ typedef void TileLoopProc(TileIndex tile); typedef void ChangeTileOwnerProc(TileIndex tile, PlayerID old_player, PlayerID new_player); /** @see VehicleEnterTileStatus to see what the return values mean */ typedef uint32 VehicleEnterTileProc(Vehicle *v, TileIndex tile, int x, int y); -typedef Slope GetSlopeTilehProc(TileIndex, Slope tileh); +typedef Foundation GetFoundationProc(TileIndex tile, Slope tileh); struct TileTypeProcs { DrawTileProc *draw_tile_proc; @@ -487,7 +487,7 @@ struct TileTypeProcs { ChangeTileOwnerProc *change_tile_owner_proc; GetProducedCargoProc *get_produced_cargo_proc; VehicleEnterTileProc *vehicle_enter_tile_proc; - GetSlopeTilehProc *get_slope_tileh_proc; + GetFoundationProc *get_foundation_proc; }; |