mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 23:34:15 +00:00
(svn r21083) -Codechange: Limit the number of exceptions in the refittable cargo list to 7 (Eddi)
This commit is contained in:
parent
42ee8f7df7
commit
fc0e64586c
@ -686,7 +686,7 @@ uint ShowRefitOptionsList(int left, int right, int y, 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) && CountBits(cmask ^ lmask) <= 7) {
|
||||
cmask ^= lmask;
|
||||
b = InlineString(b, STR_PURCHASE_INFO_ALL_BUT);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user