aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs
diff options
context:
space:
mode:
authorPaul Gilbert2018-03-29 20:30:00 -0400
committerPaul Gilbert2018-03-29 20:30:00 -0400
commit09f67c83ceeb34e4560a758e207e053aef0b7f35 (patch)
tree5ea5fb94c371fb3c86ff00ce920310715996a3d8 /engines/xeen/dialogs
parent7d2b9df5f2eb4a4b0639b00714c58b58fc200123 (diff)
downloadscummvm-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')
-rw-r--r--engines/xeen/dialogs/dialogs_spells.cpp8
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();