(svn r22411) -Document: another bunch of bits

This commit is contained in:
rubidium
2011-05-02 17:42:12 +00:00
parent eb2197f4c8
commit 9fc2798baf
34 changed files with 155 additions and 19 deletions

View File

@@ -67,6 +67,11 @@
#include "table/elrail_data.h"
/**
* Get the tile location group of a tile.
* @param t The tile to get the tile location group of.
* @return The tile location group.
*/
static inline TLG GetTLG(TileIndex t)
{
return (TLG)((HasBit(TileX(t), 0) << 1) + HasBit(TileY(t), 0));