diff options
author | truelight <truelight@openttd.org> | 2007-11-04 22:47:34 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-11-04 22:47:34 +0000 |
commit | 69b1d97c0348229bf1ff14a672d7e50aa3d9eb3f (patch) | |
tree | 3f3cf6fdd8b19411c70fc99e7dc1456cbc7f798e /src/vehicle_gui.cpp | |
parent | 3517ee6d54157541ad8c451a075b675c0b429506 (diff) | |
download | openttd-69b1d97c0348229bf1ff14a672d7e50aa3d9eb3f.tar.xz |
(svn r11382) -Codechange: renamed COUNTBITS to CountBits, as it is no longer a macro (skidd13)
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 2f35c9da1..6d0f0f85f 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -485,7 +485,7 @@ uint ShowRefitOptionsList(int x, int y, uint w, EngineID engine) char *b = _userstring; /* Draw nothing if the engine is not refittable */ - if (COUNTBITS(cmask) <= 1) return 0; + if (CountBits(cmask) <= 1) return 0; b = InlineString(b, STR_PURCHASE_INFO_REFITTABLE_TO); @@ -495,7 +495,7 @@ uint ShowRefitOptionsList(int x, int y, uint w, EngineID engine) } else { /* Check if we are able to refit to more cargo types and unable to. If * so, invert the cargo types to list those that we can't refit to. */ - if (COUNTBITS(cmask ^ lmask) < COUNTBITS(cmask)) { + if (CountBits(cmask ^ lmask) < CountBits(cmask)) { cmask ^= lmask; b = InlineString(b, STR_PURCHASE_INFO_ALL_BUT); } |