From 921efd6880c5b45f582ecc6e6ef720eebcb4d4c9 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 17 May 2016 19:12:14 +0200 Subject: KYRA: Remove redundant code. item variable value is less than 33, that is, 32 max. item+1 is never > 33. Thus, the clapping code is redundant. --- engines/kyra/items_lok.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'engines') diff --git a/engines/kyra/items_lok.cpp b/engines/kyra/items_lok.cpp index 55a23b2a1a..3a2e631744 100644 --- a/engines/kyra/items_lok.cpp +++ b/engines/kyra/items_lok.cpp @@ -844,8 +844,6 @@ void KyraEngine_LoK::updatePlayerItemsForScene() { uint8 item = _currentCharacter->inventoryItems[i]; if (item >= 29 && item < 33) { ++item; - if (item > 33) - item = 33; _currentCharacter->inventoryItems[i] = item; redraw = true; } -- cgit v1.2.3