diff options
author | Joseph-Eugene Winzer | 2017-08-23 04:25:01 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 01:47:01 +0000 |
commit | 604d421660bb7e580c864689c6f65d24bf8b4a9e (patch) | |
tree | 0121a770c129fbefb6dd32735d1acfc305162302 /engines/supernova | |
parent | 644a6835e5a3ee97a53abaeacdb05df99c90a0da (diff) | |
download | scummvm-rg350-604d421660bb7e580c864689c6f65d24bf8b4a9e.tar.gz scummvm-rg350-604d421660bb7e580c864689c6f65d24bf8b4a9e.tar.bz2 scummvm-rg350-604d421660bb7e580c864689c6f65d24bf8b4a9e.zip |
SUPERNOVA: Changes parameter name of timeToString()
Diffstat (limited to 'engines/supernova')
-rw-r--r-- | engines/supernova/state.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index 6fa600bb9f..14d6df2786 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -123,21 +123,21 @@ void GuiElement::setHighlight(bool isHighlighted) { } -static Common::String timeToString(int t) { +static Common::String timeToString(int msec) { char s[9] = " 0:00:00"; - t /= 1000; - s[7] = t % 10 + '0'; - t /= 10; - s[6] = t % 6 + '0'; - t /= 6; - s[4] = t % 10 + '0'; - t /= 10; - s[3] = t % 6 + '0'; - t /= 6; - s[1] = t % 10 + '0'; - t /= 10; - if (t) - s[0] = t + '0'; + msec /= 1000; + s[7] = msec % 10 + '0'; + msec /= 10; + s[6] = msec % 6 + '0'; + msec /= 6; + s[4] = msec % 10 + '0'; + msec /= 10; + s[3] = msec % 6 + '0'; + msec /= 6; + s[1] = msec % 10 + '0'; + msec /= 10; + if (msec) + s[0] = msec + '0'; return Common::String(s); } |