aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle/mortevielle.h
diff options
context:
space:
mode:
authorThierry Crozat2013-09-01 21:59:59 +0100
committerThierry Crozat2013-09-01 22:04:30 +0100
commit3ab88c464aed6ec81f1b9596914b17ffb4e4ab99 (patch)
tree0a0ea2aa5e4a765ff23cbc2810ef90ff83844263 /engines/mortevielle/mortevielle.h
parent909d8828fc3ac418e6cdd11a9b0228099b22aaa2 (diff)
downloadscummvm-rg350-3ab88c464aed6ec81f1b9596914b17ffb4e4ab99.tar.gz
scummvm-rg350-3ab88c464aed6ec81f1b9596914b17ffb4e4ab99.tar.bz2
scummvm-rg350-3ab88c464aed6ec81f1b9596914b17ffb4e4ab99.zip
MORTEVIELLE: Fix computation of elapsed time around midnight
Replace use of getTimeAndDate() by getMillis() when computing elapsed time. This fixes an issue when playing around midnight. Also rename some variables for clarity (since they contain a time in seconds having Hour in the name was a bit confusing).
Diffstat (limited to 'engines/mortevielle/mortevielle.h')
-rw-r--r--engines/mortevielle/mortevielle.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/mortevielle/mortevielle.h b/engines/mortevielle/mortevielle.h
index 4c096c1f71..cf49be1cf9 100644
--- a/engines/mortevielle/mortevielle.h
+++ b/engines/mortevielle/mortevielle.h
@@ -214,8 +214,8 @@ private:
int _minute;
int _curSearchObjId;
int _controlMenu;
- int _startHour;
- int _endHour;
+ int _startTime;
+ int _endTime;
Common::Point _stdPal[91][17];
int _x26KeyCount;
@@ -229,7 +229,7 @@ private:
int _x;
int _y;
int _currentHourCount;
- int _currentDayHour;
+ int _currentTime;
Common::String _hintPctMessage;
byte *_cfiecBuffer;