src/engine.cpp
branchnoai
changeset 9826 9707ad4c9b60
parent 9800 ab08ca2a2018
child 9837 c9ec4f82e0d0
equal deleted inserted replaced
9825:cc77111ebd85 9826:9707ad4c9b60
     7 #include "debug.h"
     7 #include "debug.h"
     8 #include "engine.h"
     8 #include "engine.h"
     9 #include "player_base.h"
     9 #include "player_base.h"
    10 #include "player_func.h"
    10 #include "player_func.h"
    11 #include "command_func.h"
    11 #include "command_func.h"
    12 #include "news.h"
    12 #include "news_func.h"
    13 #include "saveload.h"
    13 #include "saveload.h"
    14 #include "variables.h"
    14 #include "variables.h"
    15 #include "train.h"
    15 #include "train.h"
    16 #include "aircraft.h"
    16 #include "aircraft.h"
    17 #include "newgrf_cargo.h"
    17 #include "newgrf_cargo.h"
   336 		/* maybe make another road type available */
   336 		/* maybe make another road type available */
   337 		FOR_ALL_PLAYERS(p) {
   337 		FOR_ALL_PLAYERS(p) {
   338 			if (p->is_active) SetBit(p->avail_roadtypes, HasBit(EngInfo(index)->misc_flags, EF_ROAD_TRAM) ? ROADTYPE_TRAM : ROADTYPE_ROAD);
   338 			if (p->is_active) SetBit(p->avail_roadtypes, HasBit(EngInfo(index)->misc_flags, EF_ROAD_TRAM) ? ROADTYPE_TRAM : ROADTYPE_ROAD);
   339 		}
   339 		}
   340 	}
   340 	}
   341 	AddNewsItem(index, NEWS_FLAGS(NM_CALLBACK, 0, NT_NEW_VEHICLES, DNC_VEHICLEAVAIL), 0, 0);
   341 	AddNewsItem(index, NM_CALLBACK, NF_NONE, NT_NEW_VEHICLES, DNC_VEHICLEAVAIL, 0, 0);
   342 }
   342 }
   343 
   343 
   344 void EnginesMonthlyLoop()
   344 void EnginesMonthlyLoop()
   345 {
   345 {
   346 	if (_cur_year < YEAR_ENGINE_AGING_STOPS) {
   346 	if (_cur_year < YEAR_ENGINE_AGING_STOPS) {