Skip to content

Commit

Permalink
KYRA: Remove redundant code.
Browse files Browse the repository at this point in the history
item variable value is less than 33, that is, 32 max. item+1 is never > 33.
Thus, the clapping code is redundant.
  • Loading branch information
sev- committed May 17, 2016
1 parent fcc9477 commit 921efd6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions engines/kyra/items_lok.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 921efd6

Please sign in to comment.