From 39eb1c4cc4a409b08197eaf67a5bd51e2ba6b3c6 Mon Sep 17 00:00:00 2001 From: athrxx Date: Sun, 17 Feb 2019 23:22:09 +0100 Subject: KYRA: (EOB1/Amiga) - fix detect magic spell --- engines/kyra/engine/items_eob.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'engines/kyra/engine/items_eob.cpp') diff --git a/engines/kyra/engine/items_eob.cpp b/engines/kyra/engine/items_eob.cpp index 4d11d0dea3..b4d9d67b2b 100644 --- a/engines/kyra/engine/items_eob.cpp +++ b/engines/kyra/engine/items_eob.cpp @@ -463,17 +463,21 @@ void EoBCoreEngine::drawItemIconShape(int pageNum, Item itemId, int x, int y) { int icn = _items[itemId].icon; bool applyBluePal = ((_partyEffectFlags & 2) && (_items[itemId].flags & 0x80)) ? true : false; const uint8 *ovl = 0; + const uint8 *shp = _itemIconShapes[icn]; if (applyBluePal) { if (_flags.gameID == GI_EOB1) { - ovl = (_configRenderMode == Common::kRenderCGA) ? _itemsOverlayCGA : &_itemsOverlay[icn << 4]; + if (_amigaBlueItemIconShapes) + shp = _amigaBlueItemIconShapes[icn]; + else + ovl = (_configRenderMode == Common::kRenderCGA) ? _itemsOverlayCGA : &_itemsOverlay[icn << 4]; } else { _screen->setFadeTable(_lightBlueFadingTable); _screen->setShapeFadingLevel(1); } } - _screen->drawShape(pageNum, _itemIconShapes[icn], x, y, 0, ovl ? 2 : 0, ovl); + _screen->drawShape(pageNum, shp, x, y, 0, ovl ? 2 : 0, ovl); if (applyBluePal) { _screen->setFadeTable(_greyFadingTable); -- cgit v1.2.3