diff options
author | dominik <dominik@openttd.org> | 2004-08-13 18:27:33 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2004-08-13 18:27:33 +0000 |
commit | ca120eedad11f826b63bb5505a0f1f61aad740d4 (patch) | |
tree | 5791137b0f2b6552ea4bc03afa5cadaf28cf52de /tunnelbridge_cmd.c | |
parent | ecb6f670b0dc4b522fd712657db125162689cf4f (diff) | |
download | openttd-ca120eedad11f826b63bb5505a0f1f61aad740d4.tar.xz |
(svn r40) Final slope graphics fix
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r-- | tunnelbridge_cmd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c index 4761c6013..92bafbe65 100644 --- a/tunnelbridge_cmd.c +++ b/tunnelbridge_cmd.c @@ -1198,6 +1198,12 @@ static uint GetSlopeZ_TunnelBridge(TileInfo *ti) { return GetPartialZ(ti->x&0xF, ti->y&0xF, ti->tileh) + z; } +static uint GetSlopeTileh_TunnelBridge(TileInfo *ti) { + // not accurate, but good enough for slope graphics drawing + return 0; +} + + static void GetAcceptedCargo_TunnelBridge(uint tile, AcceptedCargo *ac) { /* not used */ @@ -1478,4 +1484,5 @@ const TileTypeProcs _tile_type_tunnelbridge_procs = { NULL, /* get_produced_cargo_proc */ VehicleEnter_TunnelBridge, /* vehicle_enter_tile_proc */ NULL, /* vehicle_leave_tile_proc */ + GetSlopeTileh_TunnelBridge, /* get_slope_tileh_proc */ }; |