diff options
author | rubidium <rubidium@openttd.org> | 2006-08-15 16:49:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-08-15 16:49:48 +0000 |
commit | 1cc6e186f06f98c76b43f94a787abaec7f024cd7 (patch) | |
tree | a8dc2bb9573156c15f1089772e4b388b37989f2d /roadveh_gui.c | |
parent | 08fd0bed1f443ade7050613a0f7de103a6c4e40c (diff) | |
download | openttd-1cc6e186f06f98c76b43f94a787abaec7f024cd7.tar.xz |
(svn r5918) -Cleanup: rename ConvertDayToYMD/ConvertYMDToDay as they really convert a Date to/from a YearMonthDay.
-Cleanup: swap ConvertDateToYMD's parameters to make the order consistent with the name of the function.
Diffstat (limited to 'roadveh_gui.c')
-rw-r--r-- | roadveh_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c index 3acfce898..f4364fb97 100644 --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -33,7 +33,7 @@ void DrawRoadVehPurchaseInfo(int x, int y, EngineID engine_number) const Engine *e = GetEngine(engine_number); bool refittable = (_engine_info[engine_number].refit_mask != 0); YearMonthDay ymd; - ConvertDayToYMD(&ymd, e->intro_date); + ConvertDateToYMD(e->intro_date, &ymd); /* Purchase cost - Max speed */ SetDParam(0, rvi->base_cost * (_price.roadveh_base>>3)>>5); |