aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-04-08 19:05:41 +0000
committerPaweł Kołodziejski2003-04-08 19:05:41 +0000
commit7189347adbe188ddf95b44e8580b6ea348a65030 (patch)
treed23d5b022989cf3addc81cfdf946be3de99fde0a
parentb93b9dc6a0528e538ebf47f00ba1926bf4e68027 (diff)
downloadscummvm-rg350-7189347adbe188ddf95b44e8580b6ea348a65030.tar.gz
scummvm-rg350-7189347adbe188ddf95b44e8580b6ea348a65030.tar.bz2
scummvm-rg350-7189347adbe188ddf95b44e8580b6ea348a65030.zip
changed range from GF_OLD256 to GF_AFTER_V3
svn-id: r6940
-rw-r--r--scumm/actor.cpp2
-rw-r--r--scumm/boxes.cpp2
-rw-r--r--scumm/costume.cpp6
-rw-r--r--scumm/gfx.cpp8
-rw-r--r--scumm/script_v5.cpp20
-rw-r--r--scumm/scummvm.cpp8
-rw-r--r--scumm/string.cpp10
7 files changed, 28 insertions, 28 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp
index 94713d09a9..8943fc6b34 100644
--- a/scumm/actor.cpp
+++ b/scumm/actor.cpp
@@ -822,7 +822,7 @@ void Scumm::walkActors() {
for (i = 1; i < NUM_ACTORS; i++) {
a = derefActor(i);
if (a->isInCurrentRoom())
- if (_features & GF_OLD256)
+ if (_features & GF_AFTER_V3)
a->walkActorOld();
else
a->walkActor();
diff --git a/scumm/boxes.cpp b/scumm/boxes.cpp
index f4f6404577..13f25847e9 100644
--- a/scumm/boxes.cpp
+++ b/scumm/boxes.cpp
@@ -209,7 +209,7 @@ Box *Scumm::getBoxBaseAddr(int box) {
return NULL;
checkRange(ptr[0] - 1, 0, box, "Illegal box %d");
if (_features & GF_SMALL_HEADER) {
- if (_features & GF_OLD256)
+ if (_features & GF_AFTER_V3) // GF_OLD256 or GF_AFTER_V3 ?
return (Box *)(ptr + box * (SIZEOF_BOX - 2) + 1);
else
return (Box *)(ptr + box * SIZEOF_BOX + 1);
diff --git a/scumm/costume.cpp b/scumm/costume.cpp
index 04147bf167..08f432002c 100644
--- a/scumm/costume.cpp
+++ b/scumm/costume.cpp
@@ -1226,7 +1226,7 @@ byte CostumeRenderer::drawLimb(const CostumeData &cost, int limb) {
_srcptr = _loaded._ptr + READ_LE_UINT16(_frameptr + code * 2);
if (code != 0x7B) {
- if (!(_vm->_features & GF_OLD256) || code < 0x79)
+ if (!(_vm->_features & GF_OLD256) || code < 0x79) // GF_OLD256 or GF_AFTER_V3 ?
return mainRoutine(limb, code);
}
@@ -1261,7 +1261,7 @@ void Scumm::cost_decodeData(Actor *a, int frame, uint usemask) {
return;
}
- if (_features & GF_OLD256)
+ if (_features & GF_AFTER_V3)
dataptr = p + *(p + lc._numColors + 8);
else
dataptr = p + READ_LE_UINT16(p + lc._numColors + 8);
@@ -1271,7 +1271,7 @@ void Scumm::cost_decodeData(Actor *a, int frame, uint usemask) {
i = 0;
do {
if (mask & 0x8000) {
- if (_features & GF_OLD256) {
+ if (_features & GF_AFTER_V3) {
j = 0;
j = *(r);
r++;
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index fc6280531f..a686495e6d 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -366,7 +366,7 @@ void Scumm::drawDirtyScreenParts() {
byte *src;
updateDirtyScreen(2);
- if (_features & GF_OLD256)
+ if (_features & GF_AFTER_V3)
updateDirtyScreen(1);
if (camera._last.x == camera._cur.x && (camera._last.y == camera._cur.y || !(_features & GF_AFTER_V7))) {
@@ -522,7 +522,7 @@ void Scumm::initBGBuffers(int height) {
}
room = getResourceAddress(rtRoom, _roomResource);
- if (_features & GF_OLD256) {
+ if (_features & GF_AFTER_V3) {
// FIXME - maybe this should check for multiple planes like we do
// for GF_SMALL_HEADER already.
gdi._numZBuffer = 2;
@@ -854,7 +854,7 @@ void Gdi::drawBitmap(byte *ptr, VirtScreen *vs, int x, int y, const int h,
(ptr[-4] == 'O' && ptr[-3] == 'I' && READ_LE_UINT32(ptr - 8) > READ_LE_UINT32(ptr) + 12)) {
zplane_list[1] = smap_ptr + READ_LE_UINT32(ptr);
// FIXME - how does GF_OLD256 encode the multiple zplanes?
- if (!(_vm->_features & GF_OLD256))
+ if (!(_vm->_features & GF_AFTER_V3))
for (i = 2; i < numzbuf; i++) {
zplane_list[i] = zplane_list[i-1] + READ_LE_UINT16(zplane_list[i-1]);
}
@@ -984,7 +984,7 @@ void Gdi::drawBitmap(byte *ptr, VirtScreen *vs, int x, int y, const int h,
if (!zplane_list[i])
continue;
- if (_vm->_features & GF_OLD256)
+ if (_vm->_features & GF_AFTER_V3) // GF_OLD256 or GF_AFTER_V3 ?
offs = READ_LE_UINT16(zplane_list[i] + stripnr * 2 + 4);
else if (_vm->_features & GF_SMALL_HEADER)
offs = READ_LE_UINT16(zplane_list[i] + stripnr * 2 + 2);
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp
index 9cb0c48336..a67d9dab6e 100644
--- a/scumm/script_v5.cpp
+++ b/scumm/script_v5.cpp
@@ -183,7 +183,7 @@ void Scumm_v5::setupOpcodes() {
OPCODE(o5_walkActorToObject),
OPCODE(o5_startObject),
/* 78 */
- OPCODE(o5_isGreater), /* less? */
+ OPCODE(o5_isGreater),
OPCODE(o5_doSentence),
OPCODE(o5_verbOps),
OPCODE(o5_getActorWalkBox),
@@ -198,7 +198,7 @@ void Scumm_v5::setupOpcodes() {
OPCODE(o5_startMusic),
OPCODE(o5_getActorRoom),
/* 84 */
- OPCODE(o5_isGreaterEqual), /* less equal? */
+ OPCODE(o5_isGreaterEqual),
OPCODE(o5_drawObject),
OPCODE(o5_getActorElevation),
OPCODE(o5_setState),
@@ -1318,7 +1318,7 @@ void Scumm_v5::o5_loadRoomWithEgo() {
void Scumm_v5::o5_matrixOps() {
int a, b;
- if (_features & GF_OLD256) {
+ if (_features & GF_AFTER_V3) {
a = getVarOrDirectByte(0x80);
b = fetchScriptByte();
setBoxFlags(a, b);
@@ -1492,7 +1492,7 @@ void Scumm_v5::o5_resourceRoutines() {
ensureResourceLoaded(resType[_opcode-1], resid);
break;
case 4: // load room
- if (_gameId == GID_ZAK256) {
+ if (_features == GF_AFTER_V3) {
ensureResourceLoaded(rtRoom, resid);
if (resid > 0x7F)
resid = _resourceMapper[resid & 0x7F];
@@ -1596,7 +1596,7 @@ void Scumm_v5::o5_resourceRoutines() {
void Scumm_v5::o5_roomOps() {
int a = 0, b = 0, c, d, e;
- if (_features & GF_OLD256) {
+ if (_features & GF_AFTER_V3) {
a = getVarOrDirectWord(0x80);
b = getVarOrDirectWord(0x40);
}
@@ -1604,7 +1604,7 @@ void Scumm_v5::o5_roomOps() {
_opcode = fetchScriptByte();
switch (_opcode & 0x1F) {
case 1: /* room scroll */
- if (!(_features & GF_OLD256)) {
+ if (!(_features & GF_AFTER_V3)) {
a = getVarOrDirectWord(0x80);
b = getVarOrDirectWord(0x40);
}
@@ -1621,7 +1621,7 @@ void Scumm_v5::o5_roomOps() {
break;
case 2: /* room color */
if (_features & GF_SMALL_HEADER) {
- if (!(_features & GF_OLD256)) {
+ if (!(_features & GF_AFTER_V2)) {
a = getVarOrDirectWord(0x80);
b = getVarOrDirectWord(0x40);
}
@@ -1639,7 +1639,7 @@ void Scumm_v5::o5_roomOps() {
break;
case 3: /* set screen */
- if (!(_features & GF_OLD256)) {
+ if (!(_features & GF_AFTER_V3)) {
a = getVarOrDirectWord(0x80);
b = getVarOrDirectWord(0x40);
}
@@ -1647,7 +1647,7 @@ void Scumm_v5::o5_roomOps() {
break;
case 4: /* set palette color */
if (_features & GF_SMALL_HEADER) {
- if (!(_features & GF_OLD256)) {
+ if (!(_features & GF_AFTER_V3)) {
a = getVarOrDirectWord(0x80);
b = getVarOrDirectWord(0x40);
}
@@ -1681,7 +1681,7 @@ void Scumm_v5::o5_roomOps() {
break;
case 8: /* room scale? */
if (_features & GF_SMALL_HEADER) {
- if (!(_features & GF_OLD256)) {
+ if (!(_features & GF_AFTER_V3)) {
a = getVarOrDirectWord(0x80);
b = getVarOrDirectWord(0x40);
}
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index 1c2ff6cfbd..47f7e51b3a 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -414,7 +414,7 @@ void Scumm::scummInit() {
clearDrawObjectQueue();
for (i = 0; i < 6; i++) {
- if (_features & GF_OLD256) {
+ if (_features & GF_AFTER_V3) { // GF_OLD256 or GF_AFTER_V3 ?
_string[i].t_xpos = 0;
_string[i].t_ypos = 0;
} else {
@@ -911,7 +911,7 @@ void Scumm::initRoomSubBlocks() {
if (ptr) {
byte numOfBoxes = *(ptr);
int size;
- if (_features & GF_OLD256)
+ if (_features & GF_AFTER_V3) // GF_OLD256 or GF_AFTER_V3 ?
size = numOfBoxes * (SIZEOF_BOX - 2) + 1;
else
size = numOfBoxes * SIZEOF_BOX + 1;
@@ -1229,7 +1229,7 @@ void Scumm::processKbd() {
else
_virtual_mouse_y = mouse.y;
- if (!(_features & GF_OLD256))
+ if (!(_features & GF_AFTER_V3))
_virtual_mouse_y += virtscr[0].topline;
else
_virtual_mouse_y -= 16;
@@ -1237,7 +1237,7 @@ void Scumm::processKbd() {
if (_virtual_mouse_y < 0)
_virtual_mouse_y = -1;
- if (_features & GF_OLD256) {
+ if (_features & GF_AFTER_V3) {
if (_virtual_mouse_y >= virtscr[0].height + virtscr[0].topline)
_virtual_mouse_y = -1;
} else {
diff --git a/scumm/string.cpp b/scumm/string.cpp
index 646880b55f..2b87523ce6 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -144,7 +144,7 @@ void Scumm::CHARSET_1() {
_charset->_right = _string[0].right;
_charset->_color = _charsetColor;
- if (!(_features & GF_OLD256)) // FIXME
+ if (!(_features & GF_AFTER_V3)) // FIXME
for (i = 0; i < 4; i++)
_charsetColorMap[i] = _charsetData[_charset->getCurID()][i];
@@ -187,7 +187,7 @@ void Scumm::CHARSET_1() {
_talkDelay = _defaultTalkDelay;
if (!_keepText) {
- if (_features & GF_OLD256) {
+ if (_features & GF_AFTER_V3) {
gdi._mask_left = _string[0].xpos;
gdi._mask_top = _string[0].ypos;
gdi._mask_bottom = _string[0].ypos + 8;
@@ -227,7 +227,7 @@ void Scumm::CHARSET_1() {
}
if (c == 13) {
newLine:;
- if (_features & GF_OLD256) {
+ if (_features & GF_AFTER_V3) {
_charset->_nextTop = 8;
_charset->_nextLeft = 0;
continue;
@@ -248,7 +248,7 @@ void Scumm::CHARSET_1() {
if (c != 0xFF) {
_charset->_left = _charset->_nextLeft;
_charset->_top = _charset->_nextTop;
- if (_features & GF_OLD256) {
+ if (_features & GF_AFTER_V3) {
_charset->printChar(c);
} else if (_features & GF_AFTER_V6) {
if (!_noSubtitles || (_haveMsg != 0xFE && _haveMsg != 0xFF))
@@ -410,7 +410,7 @@ void Scumm::drawString(int a) {
_charset->_disableOffsX = _charset->_firstChar = true;
_charset->setCurID(_string[a].charset);
- if (!(_features & GF_OLD256)) {
+ if (!(_features & GF_AFTER_V3)) {
for (i = 0; i < 4; i++)
_charsetColorMap[i] = _charsetData[_charset->getCurID()][i];