diff options
Diffstat (limited to 'engines/lab/interface.cpp')
-rw-r--r-- | engines/lab/interface.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/engines/lab/interface.cpp b/engines/lab/interface.cpp index e843d9b4cf..c70d19b2bb 100644 --- a/engines/lab/interface.cpp +++ b/engines/lab/interface.cpp @@ -124,23 +124,12 @@ uint16 makeGadgetKeyEquiv(uint16 key) { /* of gadgets. */ /*****************************************************************************/ static Gadget *checkNumGadgetHit(Gadget *gadlist, uint16 key) { -#if !defined(DOSCODE) uint16 gkey = key - '0'; -#else - key = key - '0'; -#endif while (gadlist != NULL) { -#if !defined(DOSCODE) - if ((gkey - 1 == gadlist->GadgetID || (gkey == 0 && gadlist->GadgetID == 9) || (gadlist->KeyEquiv != 0 && makeGadgetKeyEquiv(key) == gadlist->KeyEquiv)) - && !(GADGETOFF & gadlist->GadgetFlags)) -#else - if ((((key - 1) == gadlist->GadgetID) || ((key == 0) && (gadlist->GadgetID == 9))) && - !(GADGETOFF & gadlist->GadgetFlags)) -#endif - { + && !(GADGETOFF & gadlist->GadgetFlags)) { mouseHide(); drawImage(gadlist->ImAlt, gadlist->x, gadlist->y); mouseShow(); |