[Scummvm-git-logs] scummvm master -> 91405a53f4b7075c916d69e78d33b850318c2047

dreammaster dreammaster at scummvm.org
Wed Jan 24 02:38:01 CET 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
91405a53f4 XEEN: Fix resetting HP for Medusa Sprites each combat turn


Commit: 91405a53f4b7075c916d69e78d33b850318c2047
    https://github.com/scummvm/scummvm/commit/91405a53f4b7075c916d69e78d33b850318c2047
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-01-23T20:37:43-05:00

Commit Message:
XEEN: Fix resetting HP for Medusa Sprites each combat turn

Changed paths:
    engines/xeen/interface.cpp


diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp
index b0559f3..ad38b39 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;
 					}
 				}
 





More information about the Scummvm-git-logs mailing list