Permalink
Browse files

XEEN: Fix opening of World of Xeen menu

  • Loading branch information...
dreammaster committed Jan 10, 2018
1 parent e789841 commit 3956dc48455aa9a2b68e05fc5b37310ad2d6c67e
Showing with 8 additions and 0 deletions.
  1. +6 −0 engines/xeen/sprites.cpp
  2. +1 −0 engines/xeen/sprites.h
  3. +1 −0 engines/xeen/worldofxeen/worldofxeen_menu.cpp
View
@@ -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();
}
View
@@ -85,6 +85,7 @@ class SpriteResource {
public:
SpriteResource();
SpriteResource(const Common::String &filename);
SpriteResource(const Common::String &filename, int ccMode);
virtual ~SpriteResource();
@@ -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;

0 comments on commit 3956dc4

Please sign in to comment.