(svn r16315) -Codechange: move the autorenew settings to a new CompanySettings struct

This commit is contained in:
yexo
2009-05-15 23:55:06 +00:00
parent 87ff51f15b
commit d489f93473
15 changed files with 68 additions and 69 deletions

View File

@@ -100,7 +100,7 @@
/* static */ bool AIGroup::HasWagonRemoval()
{
return ::GetCompany(_current_company)->renew_keep_length;
return ::GetCompany(_current_company)->settings.renew_keep_length;
}
/* static */ bool AIGroup::SetAutoReplace(GroupID group_id, EngineID engine_id_old, EngineID engine_id_new)