aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/inter_v2.cpp
diff options
context:
space:
mode:
authorSven Hesse2007-03-04 15:34:58 +0000
committerSven Hesse2007-03-04 15:34:58 +0000
commit2a871cfef20d1a55abea1be090ed6473f43019e0 (patch)
treefd1ac9f411afdb063260715df3c6bbd9b5a4ac9e /engines/gob/inter_v2.cpp
parent20da7f80f1765bc4b2adb685cde76377ccbb0350 (diff)
downloadscummvm-rg350-2a871cfef20d1a55abea1be090ed6473f43019e0.tar.gz
scummvm-rg350-2a871cfef20d1a55abea1be090ed6473f43019e0.tar.bz2
scummvm-rg350-2a871cfef20d1a55abea1be090ed6473f43019e0.zip
- Some minor fixes
- Added the Gob2 Mac version fac76 reported in bug #1673397 svn-id: r25977
Diffstat (limited to 'engines/gob/inter_v2.cpp')
-rw-r--r--engines/gob/inter_v2.cpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/engines/gob/inter_v2.cpp b/engines/gob/inter_v2.cpp
index 987fe597ca..2bcf2deeec 100644
--- a/engines/gob/inter_v2.cpp
+++ b/engines/gob/inter_v2.cpp
@@ -1545,7 +1545,6 @@ bool Inter_v2::o2_playSound(char &cmdCount, int16 &counter, int16 &retFlag) {
repCount = _vm->_parse->parseValExpr();
frequency = _vm->_parse->parseValExpr();
- warning("playSound(%d, %d, %d)", index, repCount, frequency);
_soundEndTimeKey = 0;
if (_vm->_game->_soundSamples[index] == 0)
return false;
@@ -1715,56 +1714,55 @@ bool Inter_v2::o2_palLoad(char &cmdCount, int16 &counter, int16 &retFlag) {
switch (cmd & 0x7f) {
case 48:
- if ((_vm->_global->_videoMode < 0x32) || (_vm->_global->_videoMode > 0x63)) {
+ if ((_vm->_global->_fakeVideoMode < 0x32) || (_vm->_global->_fakeVideoMode > 0x63)) {
_vm->_global->_inter_execPtr += 48;
return false;
}
break;
case 49:
- if ((_vm->_global->_videoMode != 5) && (_vm->_global->_videoMode != 7)) {
+ if ((_vm->_global->_fakeVideoMode != 5) && (_vm->_global->_fakeVideoMode != 7)) {
_vm->_global->_inter_execPtr += 18;
return false;
}
break;
case 50:
- if ((_vm->_global->_videoMode != 0x0D) || (_vm->_global->_colorCount == 256)) {
+ if (_vm->_global->_colorCount == 256) {
_vm->_global->_inter_execPtr += 16;
return false;
}
break;
case 51:
- if (_vm->_global->_videoMode < 0x64) {
+ if (_vm->_global->_fakeVideoMode < 0x64) {
_vm->_global->_inter_execPtr += 2;
return false;
}
break;
case 52:
- if ((_vm->_platform == Common::kPlatformPC) &&
- ((_vm->_global->_videoMode != 0x0D) || (_vm->_global->_colorCount == 256))) {
+ if (_vm->_global->_colorCount == 256) {
_vm->_global->_inter_execPtr += 48;
return false;
}
break;
case 53:
- if (_vm->_global->_videoMode < 0x13) {
+ if (_vm->_global->_colorCount != 256) {
_vm->_global->_inter_execPtr += 2;
return false;
}
break;
case 54:
- if (_vm->_global->_videoMode < 0x13) {
+ if (_vm->_global->_fakeVideoMode < 0x13) {
return false;
}
break;
case 61:
- if (_vm->_global->_videoMode < 0x13) {
+ if (_vm->_global->_fakeVideoMode < 0x13) {
*_vm->_global->_inter_execPtr += 4;
return false;
}
@@ -1832,8 +1830,6 @@ bool Inter_v2::o2_palLoad(char &cmdCount, int16 &counter, int16 &retFlag) {
_vm->_draw->_vgaPalette[i].green = _vm->_global->_inter_execPtr[1];
_vm->_draw->_vgaPalette[i].blue = _vm->_global->_inter_execPtr[2];
}
- if ((_vm->_platform == Common::kPlatformPC) && _vm->_global->_videoMode >= 0x13)
- return false;
break;
case 53: