mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 05:29:11 +00:00
(svn r5928) -Cleanup: remove ConvertIntDate and use ConvertYMDToDate as ConvertIntDate was only called with Years.
This commit is contained in:
4
misc.c
4
misc.c
@@ -124,9 +124,7 @@ void InitializeGame(int mode, uint size_x, uint size_y)
|
||||
_cur_tileloop_tile = 0;
|
||||
|
||||
if ((mode & IG_DATE_RESET) == IG_DATE_RESET) {
|
||||
uint starting = ConvertIntDate(_patches.starting_year);
|
||||
if (starting == (uint)-1) starting = 10958;
|
||||
SetDate(starting);
|
||||
SetDate(ConvertYMDToDate(_patches.starting_year, 0, 1));
|
||||
}
|
||||
|
||||
InitializeEngines();
|
||||
|
Reference in New Issue
Block a user