Skip to content

Commit

Permalink
LAB: Fix DOS filename in speciallocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Jan 24, 2016
1 parent 792ae03 commit 4c43e57
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion engines/lab/speciallocks.cpp
Expand Up @@ -242,7 +242,12 @@ void SpecialLocks::showTileLock(const Common::String filename, bool showSolution
_vm->_anim->_noPalChange = false;
_vm->_graphics->blackScreen();

Common::File *tileFile = _vm->_resource->openDataFile(showSolution ? "P:TileSolution" : "P:Tile");
Common::File *tileFile;
if (_vm->getPlatform() == Common::kPlatformDOS)
tileFile = _vm->_resource->openDataFile(showSolution ? "P:TileSolu" : "P:Tile");
else
// Windows and Amiga versions use TileSolution and Tile
tileFile = _vm->_resource->openDataFile(showSolution ? "P:TileSolution" : "P:Tile");

int start = showSolution ? 0 : 1;

Expand Down

0 comments on commit 4c43e57

Please sign in to comment.