diff options
author | Julien Templier | 2010-10-23 20:07:06 +0000 |
---|---|---|
committer | Julien Templier | 2010-10-23 20:07:06 +0000 |
commit | 4e9cae8ca8f26d8d8ce41260015111337b990500 (patch) | |
tree | 5224eda8b22b0b205aa427a707f0bf57011c4b38 | |
parent | 6c47ca8253d970045f817dc75008cfb21c499d62 (diff) | |
download | scummvm-rg350-4e9cae8ca8f26d8d8ce41260015111337b990500.tar.gz scummvm-rg350-4e9cae8ca8f26d8d8ce41260015111337b990500.tar.bz2 scummvm-rg350-4e9cae8ca8f26d8d8ce41260015111337b990500.zip |
LASTEXPRESS: Output human readable time in the show game state debug command
svn-id: r53745
-rw-r--r-- | engines/lastexpress/game/state.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/lastexpress/game/state.h b/engines/lastexpress/game/state.h index 76a7cbc3f2..a1b67df476 100644 --- a/engines/lastexpress/game/state.h +++ b/engines/lastexpress/game/state.h @@ -632,7 +632,11 @@ public: Common::String toString() { Common::String ret = ""; - ret += Common::String::printf("Time: %d - Time delta: %d - Ticks: %d\n", time, timeDelta, timeTicks); + uint8 hours = 0; + uint8 minutes = 0; + getHourMinutes(time, &hours, &minutes); + + ret += Common::String::printf("Time: %d (%d:%d) - Time delta: %d - Ticks: %d\n", time, hours, minutes, timeDelta, timeTicks); ret += Common::String::printf("Brightness: %d - Volume: %d - UseBackup: %d\n", brightness, volume, sceneUseBackup); ret += Common::String::printf("Scene: %d - Scene backup: %d - Scene backup 2: %d\n", scene, sceneBackup, sceneBackup2); |