Changeset - r6376:c2467f4334f5
[Not reviewed]
master
0 1 0
peter1138 - 17 years ago 2007-03-25 10:43:27
peter1138@openttd.org
(svn r9439) -Codechange: check for valid default cargo type even if a vehicle is not refittable...
1 file changed with 0 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/newgrf.cpp
Show inline comments
 
@@ -4420,8 +4420,6 @@ static void CalculateRefitMasks()
 
		}
 
		_engine_info[engine].refit_mask = ((mask & ~not_mask) ^ xor_mask) & _cargo_mask;
 

	
 
		if (_engine_info[engine].refit_mask == 0) continue;
 

	
 
		/* Check if this engine's cargo type is valid. If not, set to the first refittable
 
		 * cargo type. Apparently cargo_type isn't a common property... */
 
		switch (GetEngine(engine)->type) {
0 comments (0 inline, 0 general)