diff options
author | rubidium <rubidium@openttd.org> | 2011-05-02 17:42:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-05-02 17:42:12 +0000 |
commit | fb5ecb94992e7febf4bc059cb6ec4a51f50c66b0 (patch) | |
tree | 87956636c318baa8d5d8d62f13263c4f64dbe881 /src/elrail.cpp | |
parent | 4d5dbf51707c42c24eeafdb65016b079c54adcf2 (diff) | |
download | openttd-fb5ecb94992e7febf4bc059cb6ec4a51f50c66b0.tar.xz |
(svn r22411) -Document: another bunch of bits
Diffstat (limited to 'src/elrail.cpp')
-rw-r--r-- | src/elrail.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp index 701d17a26..8188fa15e 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -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)); |