(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

View File

@@ -624,7 +624,7 @@ CommandCost CmdAutoreplaceVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1
}
const Company *c = GetCompany(_current_company);
bool wagon_removal = c->renew_keep_length;
bool wagon_removal = c->settings.renew_keep_length;
/* Test whether any replacement is set, before issuing a whole lot of commands that would end in nothing changed */
Vehicle *w = v;