mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-30 02:43:38 +00:00
18 lines
266 B
C
18 lines
266 B
C
/* $Id$ */
|
|
|
|
#include "stdafx.h"
|
|
#include "openttd.h"
|
|
#include "bridge_map.h"
|
|
|
|
|
|
TileIndex GetOtherBridgeEnd(TileIndex tile)
|
|
{
|
|
TileIndexDiff delta = TileOffsByDir(GetBridgeRampDirection(tile));
|
|
|
|
do {
|
|
tile += delta;
|
|
} while (!IsBridgeRamp(tile));
|
|
|
|
return tile;
|
|
}
|