aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs_query.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-02-10 19:28:45 -0500
committerPaul Gilbert2015-02-10 19:28:45 -0500
commite59617834503da077c27c5dff37f620bb1e9f0c1 (patch)
tree2cdddc9244c4ffb66b18a56a3a9ab4ac91e88b5c /engines/xeen/dialogs_query.cpp
parent8256f7c8dfcdefe7da352fd36b42dc0931a111f8 (diff)
downloadscummvm-rg350-e59617834503da077c27c5dff37f620bb1e9f0c1.tar.gz
scummvm-rg350-e59617834503da077c27c5dff37f620bb1e9f0c1.tar.bz2
scummvm-rg350-e59617834503da077c27c5dff37f620bb1e9f0c1.zip
XEEN: Refactored drawing the party icons into a separate class
Diffstat (limited to 'engines/xeen/dialogs_query.cpp')
-rw-r--r--engines/xeen/dialogs_query.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/xeen/dialogs_query.cpp b/engines/xeen/dialogs_query.cpp
index f226521a94..c982b8acd2 100644
--- a/engines/xeen/dialogs_query.cpp
+++ b/engines/xeen/dialogs_query.cpp
@@ -97,11 +97,12 @@ bool YesNo::show(XeenEngine *vm, bool type, bool townFlag) {
}
bool YesNo::execute(bool type, bool townFlag) {
- Screen &screen = *_vm->_screen;
EventsManager &events = *_vm->_events;
Interface &intf = *_vm->_interface;
Map &map = *_vm->_map;
Party &party = *_vm->_party;
+ Resources &res = *_vm->_resources;
+ Screen &screen = *_vm->_screen;
Town &town = *_vm->_town;
SpriteResource confirmSprites;
int numFrames;
@@ -112,7 +113,7 @@ bool YesNo::execute(bool type, bool townFlag) {
if (!type) {
confirmSprites.load("confirm.icn");
- intf._globalSprites.draw(screen, 7, Common::Point(232, 74));
+ res._globalSprites.draw(screen, 7, Common::Point(232, 74));
confirmSprites.draw(screen, 0, Common::Point(235, 75));
confirmSprites.draw(screen, 2, Common::Point(260, 75));
screen._windows[34].update();