diff options
author | skidd13 <skidd13@openttd.org> | 2007-11-19 21:02:30 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-11-19 21:02:30 +0000 |
commit | 71c4325c50ae594a5adf01cac7c9e527b239cdcb (patch) | |
tree | 21212e0b25777aac62f30d88b981e2bd624c4616 /src/station.cpp | |
parent | 58bb5c752568f8f9a1cb4d9533268d0ecad34e12 (diff) | |
download | openttd-71c4325c50ae594a5adf01cac7c9e527b239cdcb.tar.xz |
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
Diffstat (limited to 'src/station.cpp')
-rw-r--r-- | src/station.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/station.cpp b/src/station.cpp index d6d0f7a65..a00fc232b 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -439,7 +439,7 @@ bool RoadStop::HasFreeBay() const bool RoadStop::IsFreeBay(uint nr) const { assert(nr < MAX_BAY_COUNT); - return HASBIT(status, nr); + return HasBit(status, nr); } /** @@ -453,7 +453,7 @@ uint RoadStop::AllocateBay() /* Find the first free bay. If the bit is set, the bay is free. */ uint bay_nr = 0; - while (!HASBIT(status, bay_nr)) bay_nr++; + while (!HasBit(status, bay_nr)) bay_nr++; CLRBIT(status, bay_nr); return bay_nr; @@ -483,7 +483,7 @@ void RoadStop::FreeBay(uint nr) /** Checks whether the entrance of the road stop is occupied by a vehicle */ bool RoadStop::IsEntranceBusy() const { - return HASBIT(status, 7); + return HasBit(status, 7); } /** Makes an entrance occupied or free */ |