(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 aea2fcd0a0
commit 31eff1d4c3
15 changed files with 68 additions and 69 deletions
+1 -1
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)