Mercurial > hg > openttd
diff src/engine.cpp @ 8401:980fb697eb0a draft
(svn r11971) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Thu, 24 Jan 2008 10:47:44 +0000 (2008-01-24) |
parents | 9d39ea01a405 |
children | 689d2708728a |
line wrap: on
line diff
--- a/src/engine.cpp +++ b/src/engine.cpp @@ -342,10 +342,9 @@ 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++;