src/date.cpp
changeset 10792 95b6eb9fcc9e
parent 10775 7061477bfbcf
child 11038 d253e0dfa688
equal deleted inserted replaced
10791:0f3e94733e65 10792:95b6eb9fcc9e
     5 #include "stdafx.h"
     5 #include "stdafx.h"
     6 #include "openttd.h"
     6 #include "openttd.h"
     7 #include "variables.h"
     7 #include "variables.h"
     8 #include "settings_type.h"
     8 #include "settings_type.h"
     9 #include "network/network.h"
     9 #include "network/network.h"
    10 #include "network/network_data.h"
    10 #include "network/network_func.h"
    11 #include "network/network_server.h"
       
    12 #include "currency.h"
    11 #include "currency.h"
    13 #include "window_func.h"
    12 #include "window_func.h"
    14 #include "functions.h"
    13 #include "functions.h"
    15 #include "date_func.h"
    14 #include "date_func.h"
    16 #include "vehicle_base.h"
    15 #include "vehicle_base.h"
   266 		PlayersMonthlyLoop();
   265 		PlayersMonthlyLoop();
   267 		EnginesMonthlyLoop();
   266 		EnginesMonthlyLoop();
   268 		TownsMonthlyLoop();
   267 		TownsMonthlyLoop();
   269 		IndustryMonthlyLoop();
   268 		IndustryMonthlyLoop();
   270 		StationMonthlyLoop();
   269 		StationMonthlyLoop();
       
   270 #ifdef ENABLE_NETWORK
   271 		if (_network_server) NetworkServerMonthlyLoop();
   271 		if (_network_server) NetworkServerMonthlyLoop();
       
   272 #endif /* ENABLE_NETWORK */
   272 	}
   273 	}
   273 
   274 
   274 	/* check if we entered a new year? */
   275 	/* check if we entered a new year? */
   275 	if (ymd.year == _cur_year) return;
   276 	if (ymd.year == _cur_year) return;
   276 	_cur_year = ymd.year;
   277 	_cur_year = ymd.year;
   279 	PlayersYearlyLoop();
   280 	PlayersYearlyLoop();
   280 	TrainsYearlyLoop();
   281 	TrainsYearlyLoop();
   281 	RoadVehiclesYearlyLoop();
   282 	RoadVehiclesYearlyLoop();
   282 	AircraftYearlyLoop();
   283 	AircraftYearlyLoop();
   283 	ShipsYearlyLoop();
   284 	ShipsYearlyLoop();
       
   285 #ifdef ENABLE_NETWORK
   284 	if (_network_server) NetworkServerYearlyLoop();
   286 	if (_network_server) NetworkServerYearlyLoop();
       
   287 #endif /* ENABLE_NETWORK */
   285 
   288 
   286 	if (_cur_year == _settings_client.gui.semaphore_build_before) ResetSignalVariant();
   289 	if (_cur_year == _settings_client.gui.semaphore_build_before) ResetSignalVariant();
   287 
   290 
   288 	/* check if we reached end of the game */
   291 	/* check if we reached end of the game */
   289 	if (_cur_year == _settings_client.gui.ending_year) {
   292 	if (_cur_year == _settings_client.gui.ending_year) {