[Scummvm-git-logs] scummvm master -> 770efbe803ee8a1a78909af10f913d415f97b29e

dreammaster dreammaster at scummvm.org
Wed Jan 24 02:28:17 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:
770efbe803 XEEN: Don't give out treasure if party runs from combat


Commit: 770efbe803ee8a1a78909af10f913d415f97b29e
    https://github.com/scummvm/scummvm/commit/770efbe803ee8a1a78909af10f913d415f97b29e
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-01-23T20:28:11-05:00

Commit Message:
XEEN: Don't give out treasure if party runs from combat

Changed paths:
    engines/xeen/interface.cpp


diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp
index b8cf361..b0559f3 100644
--- a/engines/xeen/interface.cpp
+++ b/engines/xeen/interface.cpp
@@ -1614,7 +1614,9 @@ void Interface::doCombat() {
 				nextChar();
 
 				if (_vm->_mode == MODE_1) {
-					warning("TODO: loss of treasure");
+					party._treasure._gems = 0;
+					party._treasure._gold = 0;
+					party._treasure._hasItems = false;
 					party.moveToRunLocation();
 					breakFlag = true;
 				}





More information about the Scummvm-git-logs mailing list