Mercurial > hg > openttd
changeset 15244:e72aea2333da draft
(svn r19879) -Codechange: Also hide invalid engines from purchase lists.
author | frosch <frosch@openttd.org> |
---|---|
date | Sat, 22 May 2010 11:53:54 +0000 |
parents | 4b4e245ea358 |
children | faa8301e9a4e |
files | src/engine.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/engine.cpp +++ b/src/engine.cpp @@ -821,6 +821,8 @@ /* 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);