From dcbb194640b9e911be6d9bab788e36aa24ce0e5e Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 28 Apr 2018 06:52:07 -0400 Subject: XEEN: Fix rendering of Detect Monsters spell --- engines/xeen/spells.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines/xeen/spells.cpp') diff --git a/engines/xeen/spells.cpp b/engines/xeen/spells.cpp index 7ebe9ad019..de55dd6802 100644 --- a/engines/xeen/spells.cpp +++ b/engines/xeen/spells.cpp @@ -432,6 +432,7 @@ void Spells::detectMonster() { Interface &intf = *_vm->_interface; Map &map = *_vm->_map; Party &party = *_vm->_party; + Resources &res = *_vm->_resources; Sound &sound = *_vm->_sound; Windows &windows = *_vm->_windows; Window &w = windows[19]; @@ -455,23 +456,22 @@ void Spells::detectMonster() { if (++gridEntry > 3) gridEntry = 3; - sprites.draw(w, gridEntry, Common::Point(xDiff * 9 + 244, - yDiff * 7 + 81)); + sprites.draw(w, gridEntry, Common::Point(271 + xDiff * 9, 102 - yDiff * 7)); } } } } - sprites.draw(w, party._mazeDirection + 1, Common::Point(270, 101)); + res._globalSprites.draw(w, party._mazeDirection + 1, Common::Point(270, 101)); sound.playFX(20); w.update(); - do { + while (!g_vm->shouldExit() && !events.isKeyMousePressed()) { events.updateGameCounter(); intf.draw3d(true); events.wait(1, false); - } while (!events.isKeyMousePressed()); + } w.close(); } -- cgit v1.2.3