Changeset - r16357:7b29732245a9
[Not reviewed]
master
0 1 0
belugas - 14 years ago 2010-11-04 19:48:25
belugas@openttd.org
(svn r21083) -Codechange: Limit the number of exceptions in the refittable cargo list to 7 (Eddi)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/vehicle_gui.cpp
Show inline comments
 
@@ -686,7 +686,7 @@ uint ShowRefitOptionsList(int left, int 
 
	} 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);
 
		}
0 comments (0 inline, 0 general)