diff options
author | Walter van Niftrik | 2016-03-19 14:20:48 +0100 |
---|---|---|
committer | Walter van Niftrik | 2016-06-06 20:35:49 +0200 |
commit | 4ce697e2c38dd96eee13a793402d2946f89d856b (patch) | |
tree | 8d6071a1b8e794c51ada9f92591e1f23a32bd7da /engines/adl/adl.cpp | |
parent | 3f7d5608a9b3cd967c4ceb6fd9bfb5d2e4c19643 (diff) | |
download | scummvm-rg350-4ce697e2c38dd96eee13a793402d2946f89d856b.tar.gz scummvm-rg350-4ce697e2c38dd96eee13a793402d2946f89d856b.tar.bz2 scummvm-rg350-4ce697e2c38dd96eee13a793402d2946f89d856b.zip |
ADL: Rename IDI_NONE to IDI_ANY
Diffstat (limited to 'engines/adl/adl.cpp')
-rw-r--r-- | engines/adl/adl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/adl/adl.cpp b/engines/adl/adl.cpp index b3ac12d8e6..9bd22f89c3 100644 --- a/engines/adl/adl.cpp +++ b/engines/adl/adl.cpp @@ -448,14 +448,14 @@ void AdlEngine::takeItem(byte noun) { } if (item->state == IDI_ITEM_DROPPED) { - item->room = IDI_NONE; + item->room = IDI_ANY; return; } Common::Array<byte>::const_iterator pic; for (pic = item->roomPictures.begin(); pic != item->roomPictures.end(); ++pic) { if (matchesCurrentPic(*pic)) { - item->room = IDI_NONE; + item->room = IDI_ANY; item->state = IDI_ITEM_DROPPED; return; } @@ -469,7 +469,7 @@ void AdlEngine::dropItem(byte noun) { Common::Array<Item>::iterator item; for (item = _state.items.begin(); item != _state.items.end(); ++item) { - if (item->noun != noun || item->room != IDI_NONE) + if (item->noun != noun || item->room != IDI_ANY) continue; item->room = _state.room; @@ -905,7 +905,7 @@ int AdlEngine::o1_listInv(ScriptEnv &e) { Common::Array<Item>::const_iterator item; for (item = _state.items.begin(); item != _state.items.end(); ++item) - if (item->room == IDI_NONE) + if (item->room == IDI_ANY) printMessage(item->description); return 0; |