diff options
Diffstat (limited to 'engines/sword1')
-rw-r--r-- | engines/sword1/screen.cpp | 24 | ||||
-rw-r--r-- | engines/sword1/sword1.cpp | 11 |
2 files changed, 35 insertions, 0 deletions
diff --git a/engines/sword1/screen.cpp b/engines/sword1/screen.cpp index ae128b8c05..76957e0a70 100644 --- a/engines/sword1/screen.cpp +++ b/engines/sword1/screen.cpp @@ -57,6 +57,30 @@ Screen::Screen(OSystem *system, ResMan *pResMan, ObjectMan *pObjMan) { _psxCache.extPlxCache = NULL; _oldScrollX = 0; _oldScrollY = 0; + + _textMan = 0; + + for (int i = 0; i < 4; i++) + _layerGrid[i] = 0; + + for (int i = 0; i < 4; i++) + _layerBlocks[i] = 0; + + _parallax[0] = 0; + _parallax[1] = 0; + + _fullRefresh = 0; + + for (int i = 0; i < MAX_SORT; i++) { + _sortList[i].id = 0; + _sortList[i].y = 0; + } + _scrnSizeX = 0; + _scrnSizeY = 0; + _gridSizeX = 0; + _gridSizeY = 0; + _fadingDirection = 0; + _isBlack = 0; } Screen::~Screen() { diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp index 2d5452778d..5738431dce 100644 --- a/engines/sword1/sword1.cpp +++ b/engines/sword1/sword1.cpp @@ -67,6 +67,17 @@ SwordEngine::SwordEngine(OSystem *syst) SearchMan.addSubDirectoryMatching(gameDataDir, "italian"); // PSX Demo _console = new SwordConsole(this); + + _mouseState = 0; + _resMan = 0; + _objectMan = 0; + _screen = 0; + _mouse = 0; + _logic = 0; + _sound = 0; + _menu = 0; + _music = 0; + _control = 0; } SwordEngine::~SwordEngine() { |