aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-06-12 14:22:54 +0200
committerEinar Johan Trøan Sømåen2012-06-12 14:22:54 +0200
commit3508829882502b5a4dd5ba21ee47ff347efbf7b8 (patch)
tree8fd30b30c074c9f1be19092634dfb61bb931d95a /engines
parent43da09f95b2d5e1138b582da9d52c1a23416eae8 (diff)
downloadscummvm-rg350-3508829882502b5a4dd5ba21ee47ff347efbf7b8.tar.gz
scummvm-rg350-3508829882502b5a4dd5ba21ee47ff347efbf7b8.tar.bz2
scummvm-rg350-3508829882502b5a4dd5ba21ee47ff347efbf7b8.zip
WINTERMUTE: Correct some math-errors in the debug-logging.
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/Base/BGame.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/Base/BGame.cpp b/engines/wintermute/Base/BGame.cpp
index 0bd1adddd4..24dc8d357a 100644
--- a/engines/wintermute/Base/BGame.cpp
+++ b/engines/wintermute/Base/BGame.cpp
@@ -546,8 +546,8 @@ void CBGame::DEBUG_DebugEnable(const char *Filename) {
LOG(0, "********** DEBUG LOG OPENED %02d-%02d-%04d (Release Build) *****************", tm->tm_mday, tm->tm_mon, tm->tm_year + 1900);
#endif*/
int secs = g_system->getMillis() / 1000;
- int hours = secs % 3600;
- secs -= hours * 3600;
+ int hours = secs / 3600;
+ secs = secs % 3600;
int mins = secs / 60;
secs = secs % 60;
@@ -586,8 +586,8 @@ void CBGame::LOG(HRESULT res, LPCSTR fmt, ...) {
time(&timeNow);
struct tm *tm = localtime(&timeNow);*/
int secs = g_system->getMillis() / 1000;
- int hours = secs % 3600;
- secs -= hours * 3600;
+ int hours = secs / 3600;
+ secs = secs % 3600;
int mins = secs / 60;
secs = secs % 60;