Files @ r3221:abced5cbce62
Branch filter:

Location: cpp/openttd-patchpack/source/bridge_map.c

truelight
(svn r3894) -Fix: use "" over in configure
/* $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;
}