Codechange: Move calendar date functions inside TimerGameCalendar (#10753)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#include "newgrf.h"
|
||||
#include "newgrf_house.h"
|
||||
#include "economy_func.h"
|
||||
#include "date_func.h"
|
||||
#include "timer/timer_game_calendar.h"
|
||||
#include "timer/timer_game_tick.h"
|
||||
#include "texteff.hpp"
|
||||
#include "gfx_func.h"
|
||||
@@ -74,7 +74,7 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date, bool reset_settin
|
||||
_newgrf_profilers.clear();
|
||||
|
||||
if (reset_date) {
|
||||
TimerGameCalendar::SetDate(ConvertYMDToDate(_settings_game.game_creation.starting_year, 0, 1), 0);
|
||||
TimerGameCalendar::SetDate(TimerGameCalendar::ConvertYMDToDate(_settings_game.game_creation.starting_year, 0, 1), 0);
|
||||
InitializeOldNames();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user