(svn r21986) -Codechange: Add helper function to test whether an engine is still associated to a GRF.

This commit is contained in:
frosch
2011-02-05 20:37:00 +00:00
parent 2679051c68
commit faa2a26ae1
3 changed files with 12 additions and 2 deletions

View File

@@ -1110,7 +1110,7 @@ static char *FormatString(char *buff, const char *str_arg, int64 *argv, const in
assert(e != NULL);
if (e->name != NULL && e->info.string_id != STR_NEWGRF_INVALID_ENGINE) {
if (e->name != NULL && e->IsEnabled()) {
buff = strecpy(buff, e->name, last);
} else {
buff = GetStringWithArgs(buff, e->info.string_id, NULL, NULL, last);