diff options
author | zuu <zuu@openttd.org> | 2014-02-06 19:50:34 +0000 |
---|---|---|
committer | zuu <zuu@openttd.org> | 2014-02-06 19:50:34 +0000 |
commit | 96030141026ded3f892510ff9e3643319f27ebd8 (patch) | |
tree | e6e7475076685c561a7d1ff9e1161dbdc56d5f8b /src/story_gui.cpp | |
parent | 1dbd59e6ab9a917214d98c53a8ab8ca5b0d47223 (diff) | |
download | openttd-96030141026ded3f892510ff9e3643319f27ebd8.tar.xz |
(svn r26307) -Add: [nogo] Allow GS to hide story page date
Diffstat (limited to 'src/story_gui.cpp')
-rw-r--r-- | src/story_gui.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/story_gui.cpp b/src/story_gui.cpp index 9f84e57b0..872ed0a9a 100644 --- a/src/story_gui.cpp +++ b/src/story_gui.cpp @@ -519,8 +519,10 @@ public: int y_offset = - this->vscroll->GetPosition(); /* Date */ - SetDParam(0, page->date); - DrawString(0, right - x, y_offset, STR_JUST_DATE_LONG, TC_BLACK); + if (page->date != INVALID_DATE) { + SetDParam(0, page->date); + DrawString(0, right - x, y_offset, STR_JUST_DATE_LONG, TC_BLACK); + } y_offset += line_height; /* Title */ |