1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-02 11:29:10 +00:00

(svn r11971) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops

This commit is contained in:
2008-01-24 10:47:44 +00:00
parent 9c65bcea7d
commit 697b07c99c
3 changed files with 7 additions and 7 deletions

View File

@@ -342,10 +342,9 @@ static void NewVehicleAvailable(Engine *e)
void EnginesMonthlyLoop()
{
Engine *e;
if (_cur_year < YEAR_ENGINE_AGING_STOPS) {
for (e = _engines; e != endof(_engines); e++) {
Engine *e;
FOR_ALL_ENGINES(e) {
/* Age the vehicle */
if (e->flags & ENGINE_AVAILABLE && e->age != 0xFFFF) {
e->age++;