diff options
author | Paul Gilbert | 2018-01-09 20:00:03 -0500 |
---|---|---|
committer | Paul Gilbert | 2018-01-09 20:00:03 -0500 |
commit | 3956dc48455aa9a2b68e05fc5b37310ad2d6c67e (patch) | |
tree | e3d5730ba2884e474ca54b9b6f359178f57d22ca /engines | |
parent | e78984147d06dbbc1e1c373c90a8bdd02bc0d1e0 (diff) | |
download | scummvm-rg350-3956dc48455aa9a2b68e05fc5b37310ad2d6c67e.tar.gz scummvm-rg350-3956dc48455aa9a2b68e05fc5b37310ad2d6c67e.tar.bz2 scummvm-rg350-3956dc48455aa9a2b68e05fc5b37310ad2d6c67e.zip |
XEEN: Fix opening of World of Xeen menu
Diffstat (limited to 'engines')
-rw-r--r-- | engines/xeen/sprites.cpp | 6 | ||||
-rw-r--r-- | engines/xeen/sprites.h | 1 | ||||
-rw-r--r-- | engines/xeen/worldofxeen/worldofxeen_menu.cpp | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/engines/xeen/sprites.cpp b/engines/xeen/sprites.cpp index 8ea18f0e10..fd699f6927 100644 --- a/engines/xeen/sprites.cpp +++ b/engines/xeen/sprites.cpp @@ -45,6 +45,12 @@ SpriteResource::SpriteResource(const Common::String &filename) { load(filename); } +SpriteResource::SpriteResource(const Common::String &filename, int ccMode) { + _data = nullptr; + _scaledWidth = _scaledHeight = 0; + load(filename, ccMode); +} + SpriteResource::~SpriteResource() { clear(); } diff --git a/engines/xeen/sprites.h b/engines/xeen/sprites.h index 342fa3f39a..4c4a230b2e 100644 --- a/engines/xeen/sprites.h +++ b/engines/xeen/sprites.h @@ -85,6 +85,7 @@ private: public: SpriteResource(); SpriteResource(const Common::String &filename); + SpriteResource(const Common::String &filename, int ccMode); virtual ~SpriteResource(); diff --git a/engines/xeen/worldofxeen/worldofxeen_menu.cpp b/engines/xeen/worldofxeen/worldofxeen_menu.cpp index b58bf64dc0..5b08c1adec 100644 --- a/engines/xeen/worldofxeen/worldofxeen_menu.cpp +++ b/engines/xeen/worldofxeen/worldofxeen_menu.cpp @@ -51,6 +51,7 @@ void WorldOfXeenMenu::show(XeenEngine *vm) { } void WorldOfXeenMenu::execute() { + _vm->_files->setGameCc(1); SpriteResource special("special.icn"); Windows &windows = *_vm->_windows; EventsManager &events = *_vm->_events; |