diff options
author | rubidium <rubidium@openttd.org> | 2006-08-16 12:07:24 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-08-16 12:07:24 +0000 |
commit | d5b6216c3d3ad9424fab465ee3a74362ac009a3e (patch) | |
tree | 81251d3d93f9cd6e4db0874e405a2d254bfe491f /misc.c | |
parent | dddd90583d5424a259449fdcfe502e0d595646ad (diff) | |
download | openttd-d5b6216c3d3ad9424fab465ee3a74362ac009a3e.tar.xz |
(svn r5928) -Cleanup: remove ConvertIntDate and use ConvertYMDToDate as ConvertIntDate was only called with Years.
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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(); |