diff options
Diffstat (limited to 'engines/cge/cge_main.cpp')
-rw-r--r-- | engines/cge/cge_main.cpp | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp index b17f40b863..6b6f4ff971 100644 --- a/engines/cge/cge_main.cpp +++ b/engines/cge/cge_main.cpp @@ -1525,22 +1525,18 @@ void CGEEngine::runGame() { if (!_music) killMidi(); - if (_mini && INI_FILE::exist("MINI.SPR")) { + if (INI_FILE::exist("MINI.SPR")) { _miniShp = new BitmapPtr[2]; _miniShp[0] = _miniShp[1] = NULL; - uint8 *ptr = (uint8 *) &*_mini; - if (ptr != NULL) { - loadSprite("MINI", -1, 0, kMiniX, kMiniY); - expandSprite(_miniCave = _sprite); // NULL is ok - if (_miniCave) { - _miniCave->_flags._kill = false; - _miniCave->_flags._hide = true; - _miniCave->moveShapes(ptr); - _miniShp[0] = new Bitmap(*_miniCave->shp()); - _miniShpList = _miniCave->setShapeList(_miniShp); - postMiniStep(-1); - } + loadSprite("MINI", -1, 0, kMiniX, kMiniY); + expandSprite(_miniCave = _sprite); // NULL is ok + if (_miniCave) { + _miniCave->_flags._kill = false; + _miniCave->_flags._hide = true; + _miniShp[0] = new Bitmap(*_miniCave->shp()); + _miniShpList = _miniCave->setShapeList(_miniShp); + postMiniStep(-1); } } |