aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/sprites.cpp6
-rw-r--r--engines/xeen/sprites.h1
-rw-r--r--engines/xeen/worldofxeen/worldofxeen_menu.cpp1
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;