aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2009-08-10 16:42:39 +0000
committerJohannes Schickel2009-08-10 16:42:39 +0000
commit091ecc8fd09b302e9a0c86375f9b848a576700f3 (patch)
treeddaeecd13202f3c928f0c3c32515ead49ce39969 /engines
parentfe7453be1c32b6187706a6be70a0dbbe4edb3e02 (diff)
downloadscummvm-rg350-091ecc8fd09b302e9a0c86375f9b848a576700f3.tar.gz
scummvm-rg350-091ecc8fd09b302e9a0c86375f9b848a576700f3.tar.bz2
scummvm-rg350-091ecc8fd09b302e9a0c86375f9b848a576700f3.zip
- Fix extraction of Kyra 1 amiga string tables in kyra.dat
- Fix "taken" string offsets in kyra.dat - Add temporary workaround for only one "taken" string being present in Kyra 1 amiga. - Update kyra.dat svn-id: r43208
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/gui_lok.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/kyra/gui_lok.cpp b/engines/kyra/gui_lok.cpp
index 6878f00d7b..98596807fd 100644
--- a/engines/kyra/gui_lok.cpp
+++ b/engines/kyra/gui_lok.cpp
@@ -71,7 +71,11 @@ int KyraEngine_LoK::buttonInventoryCallback(Button *caller) {
_screen->fillRect(_itemPosX[itemOffset], _itemPosY[itemOffset], _itemPosX[itemOffset] + 15, _itemPosY[itemOffset] + 15, _flags.platform == Common::kPlatformAmiga ? 19 : 12);
_screen->drawShape(0, _shapes[216+_itemInHand], _itemPosX[itemOffset], _itemPosY[itemOffset], 0, 0);
setMouseItem(inventoryItem);
- updateSentenceCommand(_itemList[inventoryItem], _takenList[1], 179);
+ // TODO: Proper support for both taken strings in Amiga version
+ if (_flags.platform == Common::kPlatformAmiga)
+ updateSentenceCommand(_itemList[inventoryItem], _takenList[0], 179);
+ else
+ updateSentenceCommand(_itemList[inventoryItem], _takenList[1], 179);
_screen->showMouse();
_currentCharacter->inventoryItems[itemOffset] = _itemInHand;
_itemInHand = inventoryItem;