diff options
Diffstat (limited to 'engines/cge/text.cpp')
-rw-r--r-- | engines/cge/text.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/engines/cge/text.cpp b/engines/cge/text.cpp index 699bd5bcc1..0e77bb8955 100644 --- a/engines/cge/text.cpp +++ b/engines/cge/text.cpp @@ -234,16 +234,12 @@ void CGEEngine::inf(const char *text) { } } -void sayTime(Sprite *spr) { - /* - static char t[] = "00:00"; - struct time ti; - gettime(&ti); - wtom(ti.ti_hour, t+0, 10, 2); - wtom(ti.ti_min, t+3, 10, 2); - Say((*t == '0') ? (t+1) : t, spr); - */ - warning("STUB: sayTime"); +void Text::sayTime(Sprite *spr) { + TimeDate curTime; + char t[6]; + _vm->_system->getTimeAndDate(curTime); + sprintf(t, "%d:%02d", curTime.tm_hour, curTime.tm_min); + say(t, spr); } void killText() { |