aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
authorPaul Gilbert2018-01-23 20:37:43 -0500
committerPaul Gilbert2018-01-23 20:37:43 -0500
commit91405a53f4b7075c916d69e78d33b850318c2047 (patch)
treea313a74860f7a3609366febd0f98781bd85f5ffe /engines/xeen
parent770efbe803ee8a1a78909af10f913d415f97b29e (diff)
downloadscummvm-rg350-91405a53f4b7075c916d69e78d33b850318c2047.tar.gz
scummvm-rg350-91405a53f4b7075c916d69e78d33b850318c2047.tar.bz2
scummvm-rg350-91405a53f4b7075c916d69e78d33b850318c2047.zip
XEEN: Fix resetting HP for Medusa Sprites each combat turn
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/interface.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp
index b0559f3f80..ad38b390b7 100644
--- a/engines/xeen/interface.cpp
+++ b/engines/xeen/interface.cpp
@@ -1678,7 +1678,9 @@ void Interface::doCombat() {
for (uint idx = 0; idx < map._mobData._monsters.size(); ++idx) {
MazeMonster &monster = map._mobData._monsters[idx];
if (monster._spriteId == 53) {
- warning("TODO: Monster 53's HP is altered here?!");
+ // For Medusa sprites, their HP keeps getting reset
+ MonsterStruct &monsData = map._monsterData[53];
+ monster._hp = monsData._hp;
}
}