aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/inter.cpp
diff options
context:
space:
mode:
authorSven Hesse2009-06-15 23:09:23 +0000
committerSven Hesse2009-06-15 23:09:23 +0000
commit190dd0d077d3a1e82e7604668fab7e26189d2914 (patch)
tree56501e3fb600644b09a4f556e08b18c7b706ee37 /engines/gob/inter.cpp
parent236fad1f192c62e159df118a8164ddd33ee29e42 (diff)
downloadscummvm-rg350-190dd0d077d3a1e82e7604668fab7e26189d2914.tar.gz
scummvm-rg350-190dd0d077d3a1e82e7604668fab7e26189d2914.tar.bz2
scummvm-rg350-190dd0d077d3a1e82e7604668fab7e26189d2914.zip
Using the TYPE_ enum where applicable
svn-id: r41568
Diffstat (limited to 'engines/gob/inter.cpp')
-rw-r--r--engines/gob/inter.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/engines/gob/inter.cpp b/engines/gob/inter.cpp
index c482095b08..9000f74e8b 100644
--- a/engines/gob/inter.cpp
+++ b/engines/gob/inter.cpp
@@ -99,16 +99,16 @@ char Inter::evalExpr(int16 *pRes) {
return type;
switch (type) {
- case 20:
+ case TYPE_IMM_INT16:
*pRes = _vm->_global->_inter_resVal;
break;
- case 22:
- case 23:
+ case TYPE_IMM_STR:
+ case GOB_FALSE:
*pRes = 0;
break;
- case 24:
+ case GOB_TRUE:
*pRes = 1;
break;
}
@@ -122,7 +122,8 @@ bool Inter::evalBoolResult() {
_vm->_parse->printExpr(99);
_vm->_parse->parseExpr(99, &type);
- if ((type == 24) || ((type == 20) && _vm->_global->_inter_resVal))
+ if ( (type == GOB_TRUE) ||
+ ((type == TYPE_IMM_INT16) && _vm->_global->_inter_resVal))
return true;
else
return false;
@@ -185,14 +186,14 @@ void Inter::storeKey(int16 key) {
void Inter::writeVar(uint32 offset, uint16 type, uint32 value) {
switch (type) {
- case 16:
- case 18:
+ case TYPE_VAR_INT8:
+ case TYPE_ARRAY_INT8:
WRITE_VARO_UINT8(offset, value);
break;
- case 17:
- case 24:
- case 27:
+ case TYPE_VAR_INT16:
+ case TYPE_VAR_INT32_AS_INT16:
+ case TYPE_ARRAY_INT16:
WRITE_VARO_UINT16(offset, value);
break;