Mercurial > hg > openttd
changeset 16367:f4fa88186043 draft
(svn r21083) -Codechange: Limit the number of exceptions in the refittable cargo list to 7 (Eddi)
author | belugas <belugas@openttd.org> |
---|---|
date | Thu, 04 Nov 2010 19:48:25 +0000 |
parents | bd7540744e41 |
children | 17fef6f516d6 |
files | src/vehicle_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -686,7 +686,7 @@ } 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) && CountBits(cmask ^ lmask) <= 7) { cmask ^= lmask; b = InlineString(b, STR_PURCHASE_INFO_ALL_BUT); }