diff options
author | smatz <smatz@openttd.org> | 2010-02-05 17:05:58 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2010-02-05 17:05:58 +0000 |
commit | d62d0ac48997f9b72da0f554dcf5269694d5999e (patch) | |
tree | e849059133de10814a39a544a3060a9d7dcff672 /src/road.cpp | |
parent | a80eb0a1c00136ca3c4bbbe94842f386fdd2a334 (diff) | |
download | openttd-d62d0ac48997f9b72da0f554dcf5269694d5999e.tar.xz |
(svn r19019) -Codechange: use HasExactlyOneBit() and HasAtMostOneBit() instead of CountBits() where possible
Diffstat (limited to 'src/road.cpp')
-rw-r--r-- | src/road.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road.cpp b/src/road.cpp index 705270186..0da0d8ae0 100644 --- a/src/road.cpp +++ b/src/road.cpp @@ -64,7 +64,7 @@ RoadBits CleanUpRoadBits(const TileIndex tile, RoadBits org_rb) /* Accept only connective tiles */ connective = (neighbor_rb & mirrored_rb) || // Neighbor has got the fitting RoadBit - CountBits(neighbor_rb) == 1; // Neighbor has got only one Roadbit + HasExactlyOneBit(neighbor_rb); // Neighbor has got only one Roadbit } break; |