Codechange: Move calendar date functions inside TimerGameCalendar (#10753)
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
#include "genworld.h"
|
||||
#include "fios.h"
|
||||
#include "error_func.h"
|
||||
#include "date_func.h"
|
||||
#include "timer/timer_game_calendar.h"
|
||||
#include "timer/timer_game_tick.h"
|
||||
#include "water.h"
|
||||
@@ -613,8 +612,8 @@ byte GetSnowLine()
|
||||
{
|
||||
if (_snow_line == nullptr) return _settings_game.game_creation.snow_line_height;
|
||||
|
||||
YearMonthDay ymd;
|
||||
ConvertDateToYMD(TimerGameCalendar::date, &ymd);
|
||||
TimerGameCalendar::YearMonthDay ymd;
|
||||
TimerGameCalendar::ConvertDateToYMD(TimerGameCalendar::date, &ymd);
|
||||
return _snow_line->table[ymd.month][ymd.day];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user