You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
/* $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;
|
|
}
|