diff options
author | Paul Gilbert | 2018-03-17 20:01:08 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-17 20:21:27 -0400 |
commit | 562522e14414db68b77595de84d856c39e6cf00d (patch) | |
tree | f8be5655ff65d0c311bc2fcf2a1929306ac5df0c /engines/xeen/dialogs/dialogs_spells.cpp | |
parent | 51027a02cf1dc3f45c2b95da82b94179a25b8c19 (diff) | |
download | scummvm-rg350-562522e14414db68b77595de84d856c39e6cf00d.tar.gz scummvm-rg350-562522e14414db68b77595de84d856c39e6cf00d.tar.bz2 scummvm-rg350-562522e14414db68b77595de84d856c39e6cf00d.zip |
XEEN: Fix display of Lloyd's Beacon spell
Diffstat (limited to 'engines/xeen/dialogs/dialogs_spells.cpp')
-rw-r--r-- | engines/xeen/dialogs/dialogs_spells.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/engines/xeen/dialogs/dialogs_spells.cpp b/engines/xeen/dialogs/dialogs_spells.cpp index 3da5a5149e..2996cb7e94 100644 --- a/engines/xeen/dialogs/dialogs_spells.cpp +++ b/engines/xeen/dialogs/dialogs_spells.cpp @@ -816,18 +816,17 @@ bool LloydsBeacon::execute() { } // Open up the text file for the destination map and read in it's name - File textFile(Common::String::format("%s%c%03d.txt", - c._lloydSide == 0 ? "xeen" : "dark", - c._lloydMap >= 100 ? 'x' : '0', - c._lloydMap)); + 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(); // Display the dialog w.open(); - w.writeString(Common::String::format(Res.LLOYDS_BEACON, - mapName.c_str(), c._lloydPosition.x, c._lloydPosition.y)); - drawButtons(&windows[0]); + w.writeString(Common::String::format(Res.LLOYDS_BEACON, mapName.c_str(), + c._lloydPosition.x, c._lloydPosition.y)); + drawButtons(&w); w.update(); bool result = true; |