From a56f760727898e1e6d22cfb06c03c7e1f04de423 Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Mon, 16 Aug 2021 10:58:47 +0200 Subject: [PATCH] TWINE: converted todo comment verified with disassembly of lbawin and dotemu --- engines/twine/script/script_life_v1.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engines/twine/script/script_life_v1.cpp b/engines/twine/script/script_life_v1.cpp index e941f6ed2aa..598f5afbdf0 100644 --- a/engines/twine/script/script_life_v1.cpp +++ b/engines/twine/script/script_life_v1.cpp @@ -1229,7 +1229,8 @@ static int32 lINC_CLOVER_BOX(TwinEEngine *engine, LifeScriptContext &ctx) { */ static int32 lSET_USED_INVENTORY(TwinEEngine *engine, LifeScriptContext &ctx) { const int32 item = ctx.stream.readByte(); - if (item < InventoryItems::kKeypad) { // TODO: this looks wrong - why only up to keypad? + // Only up to keypad. lbawin and dotemu are doing this, too + if (item < InventoryItems::kKeypad) { engine->_gameState->_inventoryFlags[item] = 1; } return 0;