Changeset - r15234:d880b9b9ee6f
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-05-22 11:53:54
frosch@openttd.org
(svn r19879) -Codechange: Also hide invalid engines from purchase lists.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/engine.cpp
Show inline comments
 
@@ -821,6 +821,8 @@ bool IsEngineBuildable(EngineID engine, 
 
	/* check if it's available */
 
	if (!HasBit(e->company_avail, company)) return false;
 

	
 
	if (e->info.string_id == STR_NEWGRF_INVALID_ENGINE) return false;
 

	
 
	if (type == VEH_TRAIN) {
 
		/* Check if the rail type is available to this company */
 
		const Company *c = Company::Get(company);
0 comments (0 inline, 0 general)