diff options
Diffstat (limited to 'engines/lure')
-rw-r--r-- | engines/lure/debugger.cpp | 4 | ||||
-rw-r--r-- | engines/lure/detection.cpp | 16 | ||||
-rw-r--r-- | engines/lure/hotspots.cpp | 2 | ||||
-rw-r--r-- | engines/lure/menu.cpp | 5 | ||||
-rw-r--r-- | engines/lure/res_struct.cpp | 4 | ||||
-rw-r--r-- | engines/lure/room.cpp | 2 | ||||
-rw-r--r-- | engines/lure/scripts.cpp | 2 |
7 files changed, 18 insertions, 17 deletions
diff --git a/engines/lure/debugger.cpp b/engines/lure/debugger.cpp index 3fbbf84469..92f07a566e 100644 --- a/engines/lure/debugger.cpp +++ b/engines/lure/debugger.cpp @@ -337,11 +337,11 @@ bool Debugger::cmd_hotspot(int argc, const char **argv) { } else if (strcmp(argv[2], "activate") == 0) { // Activate the hotspot res.activateHotspot(hs->hotspotId); - hs->flags &= !HOTSPOTFLAG_MENU_EXCLUSION; + hs->flags &= ~HOTSPOTFLAG_MENU_EXCLUSION; DebugPrintf("Activated\n"); } else if (strcmp(argv[2], "deactivate") == 0) { - // Activate the hotspot + // Deactivate the hotspot res.deactivateHotspot(hs->hotspotId); hs->flags |= HOTSPOTFLAG_MENU_EXCLUSION; DebugPrintf("Deactivated\n"); diff --git a/engines/lure/detection.cpp b/engines/lure/detection.cpp index ab7615c265..64d26c4c04 100644 --- a/engines/lure/detection.cpp +++ b/engines/lure/detection.cpp @@ -70,7 +70,7 @@ static const LureGameDescription gameDescriptions[] = { "VGA", AD_ENTRY1("disk1.vga", "b2a8aa6d7865813a17a3c636e063572e"), Common::EN_ANY, - Common::kPlatformPC, + Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO0() }, @@ -83,7 +83,7 @@ static const LureGameDescription gameDescriptions[] = { "EGA", AD_ENTRY1("disk1.ega", "e9c9fdd8a19f7910d68e53cb84651273"), Common::EN_ANY, - Common::kPlatformPC, + Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO0() }, @@ -96,7 +96,7 @@ static const LureGameDescription gameDescriptions[] = { "VGA", AD_ENTRY1("disk1.vga", "cf69d5ada228dd74f89046691c16aafb"), Common::IT_ITA, - Common::kPlatformPC, + Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO0() }, @@ -109,7 +109,7 @@ static const LureGameDescription gameDescriptions[] = { "EGA", AD_ENTRY1("disk1.ega", "b80aced0321f64c58df2c7d3d74dfe79"), Common::IT_ITA, - Common::kPlatformPC, + Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO0() }, @@ -122,7 +122,7 @@ static const LureGameDescription gameDescriptions[] = { "", AD_ENTRY1("disk1.vga", "7aa19e444dab1ac7194d9f7a40ffe54a"), Common::DE_DEU, - Common::kPlatformPC, + Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO0() }, @@ -135,7 +135,7 @@ static const LureGameDescription gameDescriptions[] = { "", AD_ENTRY1("disk1.vga", "894a2c2caeccbad2fc2f4a79a8ee47b0"), Common::DE_DEU, - Common::kPlatformPC, + Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO0() }, @@ -148,7 +148,7 @@ static const LureGameDescription gameDescriptions[] = { "", AD_ENTRY1("disk1.vga", "1c94475c1bb7e0e88c1757d3b5377e94"), Common::FR_FRA, - Common::kPlatformPC, + Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO0() }, @@ -161,7 +161,7 @@ static const LureGameDescription gameDescriptions[] = { "", AD_ENTRY1("disk1.vga", "1751145b653959f7a64fe1618d6b97ac"), Common::ES_ESP, - Common::kPlatformPC, + Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO0() }, diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp index ee7a185ea1..7fab4521f7 100644 --- a/engines/lure/hotspots.cpp +++ b/engines/lure/hotspots.cpp @@ -213,7 +213,7 @@ void Hotspot::setAnimation(uint16 newAnimId) { else { tempAnim = r.getAnimation(newAnimId); if (tempAnim == NULL) - error("Hotspot %xh tried to set non-existant Animation Id: %xh", _hotspotId, newAnimId); + error("Hotspot %xh tried to set non-existent Animation Id: %xh", _hotspotId, newAnimId); } setAnimation(tempAnim); diff --git a/engines/lure/menu.cpp b/engines/lure/menu.cpp index 5a0dd26cba..7564ce91a0 100644 --- a/engines/lure/menu.cpp +++ b/engines/lure/menu.cpp @@ -31,7 +31,7 @@ #include "lure/events.h" #include "lure/lure.h" -#if defined(_WIN32_WCE) || defined(__SYMBIAN32__) || defined(WEBOS) +#if defined(_WIN32_WCE) || defined(__SYMBIAN32__) || defined(WEBOS) || defined(__ANDROID__) #define LURE_CLICKABLE_MENUS #endif @@ -47,6 +47,7 @@ MenuRecord::MenuRecord(const MenuRecordBounds *bounds, int numParams, ...) { va_start(params, numParams); for (int index = 0; index < _numEntries; ++index) _entries[index] = va_arg(params, const char *); + va_end(params); // Store position data _hsxstart = bounds->left; _hsxend = bounds->right; @@ -458,7 +459,7 @@ Action PopupMenu::Show(int numEntries, Action *actions) { strList[index] = stringList.getString(*actionPtr++); uint16 result = Show(numEntries, strList); - delete strList; + Memory::dealloc(strList); if (result == 0xffff) return NONE; else return actions[result]; } diff --git a/engines/lure/res_struct.cpp b/engines/lure/res_struct.cpp index aee4f11215..15e7c1302d 100644 --- a/engines/lure/res_struct.cpp +++ b/engines/lure/res_struct.cpp @@ -1262,7 +1262,7 @@ bool ValueTableData::isKnownField(uint16 fieldIndex) { } uint16 ValueTableData::getField(uint16 fieldIndex) { - if (fieldIndex > NUM_VALUE_FIELDS) + if (fieldIndex >= NUM_VALUE_FIELDS) error("Invalid field index specified %d", fieldIndex); // if (!isKnownField(fieldIndex)) // warning("Unknown field index %d in GET_FIELD opcode", fieldIndex); @@ -1274,7 +1274,7 @@ uint16 ValueTableData::getField(FieldName fieldName) { } void ValueTableData::setField(uint16 fieldIndex, uint16 value) { - if (fieldIndex > NUM_VALUE_FIELDS) + if (fieldIndex >= NUM_VALUE_FIELDS) error("Invalid field index specified %d", fieldIndex); _fieldList[fieldIndex] = value; // if (!isKnownField(fieldIndex)) diff --git a/engines/lure/room.cpp b/engines/lure/room.cpp index 9a9313ece9..26d15dd025 100644 --- a/engines/lure/room.cpp +++ b/engines/lure/room.cpp @@ -549,7 +549,7 @@ void Room::setRoomNumber(uint16 newRoomNumber, bool showOverlay) { _roomData = res.getRoom(newRoomNumber); if (!_roomData) - error("Tried to change to non-existant room: %d", newRoomNumber); + error("Tried to change to non-existent room: %d", newRoomNumber); bool fadeFlag = (newRoomNumber != _roomNumber) && (_roomNumber != 0); bool leaveFlag = _roomNumber != 999; diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp index df2f06df96..8afdaa5ad1 100644 --- a/engines/lure/scripts.cpp +++ b/engines/lure/scripts.cpp @@ -673,7 +673,7 @@ void Script::barmanServe(uint16 v1, uint16 v2, uint16 v3) { // Stores the current number of groats in the general field void Script::getNumGroats(uint16 v1, uint16 v2, uint16 v3) { - ValueTableData fields = Resources::getReference().fieldList(); + ValueTableData &fields = Resources::getReference().fieldList(); fields.setField(GENERAL, fields.numGroats()); } |