aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v2.cpp
diff options
context:
space:
mode:
authorJames Brown2003-05-21 09:29:24 +0000
committerJames Brown2003-05-21 09:29:24 +0000
commit0c0cb618769afe273f9935ae4404d6a4ca08723d (patch)
tree85544f6d88ec93cc8d37fd1ba21504b9c5b208a4 /scumm/script_v2.cpp
parent0096df9737affd13269693a9f54659299771e252 (diff)
downloadscummvm-rg350-0c0cb618769afe273f9935ae4404d6a4ca08723d.tar.gz
scummvm-rg350-0c0cb618769afe273f9935ae4404d6a4ca08723d.tar.bz2
scummvm-rg350-0c0cb618769afe273f9935ae4404d6a4ca08723d.zip
Move stuff around
svn-id: r7775
Diffstat (limited to 'scumm/script_v2.cpp')
-rw-r--r--scumm/script_v2.cpp49
1 files changed, 2 insertions, 47 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp
index cabbd0e959..38fbc860c5 100644
--- a/scumm/script_v2.cpp
+++ b/scumm/script_v2.cpp
@@ -1186,53 +1186,7 @@ void Scumm_v2::o2_pickupObject() {
clearDrawObjectQueue();
runHook(1);
- // FIXME: Ender Quick Hack to allow further Zak testing.
- // In reality, we should probably stuff the inventory into verbs
- // as later games do. Easier hotspot tracking :)
- if (!(_userState & 64))
- return;
-{
- int i, items = 0, curInventoryCount = 0;
- bool alternate = false;
-
- if (curInventoryCount > _maxInventoryItems)
- curInventoryCount = _maxInventoryItems;
-
- for (i = curInventoryCount + 1; i <= _maxInventoryItems; i++) {
- if (_inventory[i] != 0) {
- _string[1].charset = 1;
- _string[1].ypos = virtscr[2].topline + 34 + (8*(items / 2));
- _string[1].color = 5;
- _messagePtr = getObjOrActorName(_inventory[i]);
-
- if (alternate)
- _string[1].xpos = 200;
- else
- _string[1].xpos = 0;
- drawString(1);
-
- items++;
- alternate = !alternate;
- }
- if (items == 4)
- break;
- }
-
- //if (curInventoryCount > 0) { // Draw Up Arrow
- _string[1].xpos = 145;
- _string[1].ypos = virtscr[2].topline + 32;
- _messagePtr = (byte*)strdup("U");
- drawString(1);
- //}
-
- //if (items == 4) { // Draw Down Arrow
- _string[1].xpos = 145;
- _string[1].ypos = virtscr[2].topline + 47;
- _messagePtr = (byte*)strdup("D");
- drawString(1);
- //}
-
-}
+ redrawV2Inventory();
}
void Scumm_v2::o2_setObjectName() {
@@ -1282,6 +1236,7 @@ void Scumm_v2::o2_cursorCommand() { // TODO: Define the magic numbers
if (a2 & 4) { // Userface
_userState = a2 & (32 | 64 | 128);
+ redrawV2Inventory();
}
if (a2 & 1) { // Freeze