diff options
author | Filippos Karapetis | 2015-12-04 02:52:29 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:33:50 +0100 |
commit | c399536a07b6bf96ff311d4398f51e2d865a2027 (patch) | |
tree | 92c6bbd798ca7661d3305a44517f9b25e7054372 /engines | |
parent | b7faa0bccfcefa33e5bb3345b548aa504bd22982 (diff) | |
download | scummvm-rg350-c399536a07b6bf96ff311d4398f51e2d865a2027.tar.gz scummvm-rg350-c399536a07b6bf96ff311d4398f51e2d865a2027.tar.bz2 scummvm-rg350-c399536a07b6bf96ff311d4398f51e2d865a2027.zip |
LAB: Small cleanup in from_crumbs()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/lab/engine.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp index 051ccacd78..d7d9f3b577 100644 --- a/engines/lab/engine.cpp +++ b/engines/lab/engine.cpp @@ -864,17 +864,8 @@ bool LabEngine::from_crumbs(uint32 tmpClass, uint16 code, uint16 Qualifier, Comm perFlipGadget(actionMode); - if (gadgetId == 0) - drawStaticMessage(kTextTakeWhat); - else if (gadgetId == 1) - drawStaticMessage(kTextMoveWhat); - else if (gadgetId == 2) - drawStaticMessage(kTextOpenWhat); - else if (gadgetId == 3) - drawStaticMessage(kTextCloseWhat); - else if (gadgetId == 4) - drawStaticMessage(kTextLookWhat); - + if (gadgetId <= 4) + drawStaticMessage(kTextTakeWhat + gadgetId); screenUpdate(); } } else if (gadgetId == 9) { |