diff options
author | Paul Gilbert | 2018-04-05 20:06:14 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-04-05 20:06:14 -0400 |
commit | 8648a48080895308cf79c7fe99ecfebcb08c7528 (patch) | |
tree | 765d2f851681fc4da9e782c4e7c4426ec89ef1ff /engines/xeen/party.cpp | |
parent | a54850cae0e84089a07188f3ef264a0ab3c412c8 (diff) | |
download | scummvm-rg350-8648a48080895308cf79c7fe99ecfebcb08c7528.tar.gz scummvm-rg350-8648a48080895308cf79c7fe99ecfebcb08c7528.tar.bz2 scummvm-rg350-8648a48080895308cf79c7fe99ecfebcb08c7528.zip |
XEEN: Move check code for nearby monsters to it's own method
Diffstat (limited to 'engines/xeen/party.cpp')
-rw-r--r-- | engines/xeen/party.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp index 8852b51ca2..d53c1f2450 100644 --- a/engines/xeen/party.cpp +++ b/engines/xeen/party.cpp @@ -689,10 +689,7 @@ void Party::giveTreasure() { if (!_treasure._hasItems && !_treasure._gold && !_treasure._gems) return; - bool monstersPresent = false; - for (int idx = 0; idx < 26 && !monstersPresent; ++idx) - monstersPresent = combat._attackMonsters[idx] != -1; - + bool monstersPresent = combat.areMonstersPresent(); if (_vm->_mode != MODE_RECORD_EVENTS && monstersPresent) return; |