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:
@@ -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++;
|
||||
|
Reference in New Issue
Block a user