diff options
author | Paul Gilbert | 2018-03-29 20:30:00 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-29 20:30:00 -0400 |
commit | 09f67c83ceeb34e4560a758e207e053aef0b7f35 (patch) | |
tree | 5ea5fb94c371fb3c86ff00ce920310715996a3d8 /engines/xeen/dialogs/dialogs_spells.cpp | |
parent | 7d2b9df5f2eb4a4b0639b00714c58b58fc200123 (diff) | |
download | scummvm-rg350-09f67c83ceeb34e4560a758e207e053aef0b7f35.tar.gz scummvm-rg350-09f67c83ceeb34e4560a758e207e053aef0b7f35.tar.bz2 scummvm-rg350-09f67c83ceeb34e4560a758e207e053aef0b7f35.zip |
XEEN: Fix LLoyd's Beacon spell in Clouds of Xeen
Diffstat (limited to 'engines/xeen/dialogs/dialogs_spells.cpp')
-rw-r--r-- | engines/xeen/dialogs/dialogs_spells.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/xeen/dialogs/dialogs_spells.cpp b/engines/xeen/dialogs/dialogs_spells.cpp index a14d4babaa..21bd7e2776 100644 --- a/engines/xeen/dialogs/dialogs_spells.cpp +++ b/engines/xeen/dialogs/dialogs_spells.cpp @@ -742,12 +742,8 @@ bool LloydsBeacon::execute() { } } - // Open up the text file for the destination map and read in it's name - Common::String txtName = Common::String::format("%s%c%03d.txt", - c._lloydSide ? "dark" : "xeen", c._lloydMap >= 100 ? 'x' : '0', c._lloydMap); - File textFile(txtName, 1); - Common::String mapName = textFile.readString(); - textFile.close(); + // Get the destination map name + Common::String mapName = Map::getMazeName(c._lloydMap, c._lloydSide); // Display the dialog w.open(); |