aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/sequence/sequences_lok.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/sequence/sequences_lok.cpp')
-rw-r--r--engines/kyra/sequence/sequences_lok.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/kyra/sequence/sequences_lok.cpp b/engines/kyra/sequence/sequences_lok.cpp
index ba3d49fafa..0d3b5fc7e4 100644
--- a/engines/kyra/sequence/sequences_lok.cpp
+++ b/engines/kyra/sequence/sequences_lok.cpp
@@ -860,7 +860,7 @@ void KyraEngine_LoK::seq_fillFlaskWithWater(int item, int type) {
characterSays(voiceEntries[type], _fullFlask[type], 0, -2);
}
-void KyraEngine_LoK::seq_playDrinkPotionAnim(int item, int unk2, int flags) {
+void KyraEngine_LoK::seq_playDrinkPotionAnim(int item, int makeFlaskEmpty, int flags) {
if (_flags.platform == Common::kPlatformAmiga) {
uint8 r, g, b;
@@ -1003,9 +1003,8 @@ void KyraEngine_LoK::seq_playDrinkPotionAnim(int item, int unk2, int flags) {
delayWithTicks(7);
}
- if (unk2) {
- // XXX
- }
+ if (makeFlaskEmpty)
+ _screen->setPaletteIndex(0xFE, 30, 30, 30);
for (int i = 131; i >= 123; --i) {
_currentCharacter->currentAnimFrame = i;