diff options
author | James Brown | 2003-05-21 06:14:02 +0000 |
---|---|---|
committer | James Brown | 2003-05-21 06:14:02 +0000 |
commit | a318beaa180bb98b49b9023e3eb0ed83fb3e7800 (patch) | |
tree | 5644309594a9d63caa17728c35bf562145ecab8c /scumm/script_v2.cpp | |
parent | 9986605c4652ef36d655d8d548e9927a86794a11 (diff) | |
download | scummvm-rg350-a318beaa180bb98b49b9023e3eb0ed83fb3e7800.tar.gz scummvm-rg350-a318beaa180bb98b49b9023e3eb0ed83fb3e7800.tar.bz2 scummvm-rg350-a318beaa180bb98b49b9023e3eb0ed83fb3e7800.zip |
Attempt to fix some stuff
svn-id: r7768
Diffstat (limited to 'scumm/script_v2.cpp')
-rw-r--r-- | scumm/script_v2.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp index 2584018f4c..6d013cd7bd 100644 --- a/scumm/script_v2.cpp +++ b/scumm/script_v2.cpp @@ -874,10 +874,12 @@ void Scumm_v2::o2_doSentence() { void Scumm_v2::o2_drawSentence() { ScummVM::Rect sentenceline; - static char sentence[80]; int slot = getVerbSlot(_scummVars[VAR_SENTENCE_VERB],0); + if (_userPut < 1) + return; + strcpy(sentence, (char*)getResourceAddress(rtVerb, slot)); if (_scummVars[27] > 0) { @@ -1187,6 +1189,8 @@ void Scumm_v2::o2_pickupObject() { // 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 (_userPut < 1) + return; { int i, items = 0, curInventoryCount = 0; bool alternate = false; @@ -1275,9 +1279,14 @@ void Scumm_v2::o2_cursorCommand() { _scummVars[21] = cmd & 0xFF; printf("Set cmd %d\n", cmd & 0xFF); } + if (a2 & 4) { - _userPut = 1; - warning("TODO: o2_cursorCommand(userface)"); + if (_userPut == 1) + _userPut = 0; + else + _userPut = 1; + + warning("TODO: o2_cursorCommand(userface) -> %d", _userPut); } // Toggle verbs on/off, etc if (a2 & 1) { // Freeze |