diff options
author | Travis Howell | 2009-01-05 09:49:57 +0000 |
---|---|---|
committer | Travis Howell | 2009-01-05 09:49:57 +0000 |
commit | 1409526f6bb87301d0b2e32d614839f47d15f073 (patch) | |
tree | 2750823c049a860ec6787eab4dccd8b3e241019d /engines | |
parent | 85c9decb8dd6a1c46fb23baf2ca833b01f77c867 (diff) | |
download | scummvm-rg350-1409526f6bb87301d0b2e32d614839f47d15f073.tar.gz scummvm-rg350-1409526f6bb87301d0b2e32d614839f47d15f073.tar.bz2 scummvm-rg350-1409526f6bb87301d0b2e32d614839f47d15f073.zip |
Remove unused code, since room flags are always zero in Elvira 1.
svn-id: r35738
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agos/agos.h | 1 | ||||
-rw-r--r-- | engines/agos/script_e1.cpp | 11 |
2 files changed, 0 insertions, 12 deletions
diff --git a/engines/agos/agos.h b/engines/agos/agos.h index d0aa0d1494..68a2771b62 100644 --- a/engines/agos/agos.h +++ b/engines/agos/agos.h @@ -1066,7 +1066,6 @@ public: void o_setDollar(); void o_isBox(); - int16 levelOf(Item *item); int16 moreText(Item *i); void lobjFunc(Item *i, const char *f); uint confirmYesOrNo(uint16 x, uint16 y); diff --git a/engines/agos/script_e1.cpp b/engines/agos/script_e1.cpp index adbb45d278..15fea99a93 100644 --- a/engines/agos/script_e1.cpp +++ b/engines/agos/script_e1.cpp @@ -563,9 +563,6 @@ void AGOSEngine_Elvira1::oe1_look() { if (l) { lobjFunc(l, "You can see "); /* Show objects */ } - if (r && (r->flags & 4) && levelOf(i) < 10000) { - quitGame(); - } } void AGOSEngine_Elvira1::oe1_doClass() { @@ -973,14 +970,6 @@ void AGOSEngine_Elvira1::oe1_printMonsterHit() { mouseOn(); } -int16 AGOSEngine::levelOf(Item *item) { - SubPlayer *p = (SubPlayer *)findChildOfType(item, kPlayerType); - if (p == NULL) - return 0; - - return p->level; -} - int16 AGOSEngine::moreText(Item *i) { SubObject *o; i = derefItem(i->next); |