aboutsummaryrefslogtreecommitdiff
path: root/scumm/intern.h
diff options
context:
space:
mode:
authorMax Horn2003-05-08 15:48:50 +0000
committerMax Horn2003-05-08 15:48:50 +0000
commit98881c3a6a513c27a06e596c29e0b40b355844f6 (patch)
treea6ddbd3a2e3aa483bae3d82e63fa2ccb6fc40f13 /scumm/intern.h
parent6ab104cc3ca433b672318b3e9bde26f7e882940c (diff)
downloadscummvm-rg350-98881c3a6a513c27a06e596c29e0b40b355844f6.tar.gz
scummvm-rg350-98881c3a6a513c27a06e596c29e0b40b355844f6.tar.bz2
scummvm-rg350-98881c3a6a513c27a06e596c29e0b40b355844f6.zip
init all VAR_* variables to 0xFF; replaced access to _vars in the form _vars[VAR_*] by VARS(VAR_*) which performs a validity checK; renamed _vars to _scummVars to make sure I updated all places; fixed two places where V6 and newer games would access V5 vars (but there are still some left, it seems); checked VAR access for now only generates a warning
svn-id: r7393
Diffstat (limited to 'scumm/intern.h')
-rw-r--r--scumm/intern.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/scumm/intern.h b/scumm/intern.h
index ce43e1a56b..738634ec85 100644
--- a/scumm/intern.h
+++ b/scumm/intern.h
@@ -294,7 +294,17 @@ protected:
const OpcodeEntryV6 *_opcodesV6;
public:
- Scumm_v6(GameDetector *detector, OSystem *syst) : Scumm(detector, syst) {}
+ Scumm_v6(GameDetector *detector, OSystem *syst) : Scumm(detector, syst)
+ {
+ VAR_VIDEONAME = 0xFF;
+
+ VAR_TIMEDATE_YEAR = 0xFF;
+ VAR_TIMEDATE_MONTH = 0xFF;
+ VAR_TIMEDATE_DAY = 0xFF;
+ VAR_TIMEDATE_HOUR = 0xFF;
+ VAR_TIMEDATE_MINUTE = 0xFF;
+ VAR_TIMEDATE_SECOND = 0xFF;
+ }
protected:
virtual void setupOpcodes();