diff options
author | rubidium <rubidium@openttd.org> | 2009-11-21 12:43:09 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-21 12:43:09 +0000 |
commit | 37056b564ce6d05e221a7dae9f67917eef227795 (patch) | |
tree | 8cf660c6a4989c14a640392c263ed4bef7b7ecc6 /src/timetable_gui.cpp | |
parent | 0512761214f42241f830f9f94bf497c47e490cdd (diff) | |
download | openttd-37056b564ce6d05e221a7dae9f67917eef227795.tar.xz |
(svn r18204) -Codechange: introduce a type for Ticks and use it; furthermore document some related variables/functions
Diffstat (limited to 'src/timetable_gui.cpp')
-rw-r--r-- | src/timetable_gui.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp index 8d704c2fe..2962f47b0 100644 --- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -39,14 +39,20 @@ enum TimetableViewWindowWidgets { TTV_RESIZE, }; -void SetTimetableParams(int param1, int param2, uint32 time) +/** + * Set the timetable parameters in the format as described by the setting. + * @param param1 the first DParam to fill + * @param param2 the second DParam to fill + * @param ticks the number of ticks to 'draw' + */ +void SetTimetableParams(int param1, int param2, Ticks ticks) { if (_settings_client.gui.timetable_in_ticks) { SetDParam(param1, STR_TIMETABLE_TICKS); - SetDParam(param2, time); + SetDParam(param2, ticks); } else { SetDParam(param1, STR_TIMETABLE_DAYS); - SetDParam(param2, time / DAY_TICKS); + SetDParam(param2, ticks / DAY_TICKS); } } |