From 09f67c83ceeb34e4560a758e207e053aef0b7f35 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 29 Mar 2018 20:30:00 -0400 Subject: XEEN: Fix LLoyd's Beacon spell in Clouds of Xeen --- engines/xeen/dialogs/dialogs_spells.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'engines/xeen/dialogs') 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(); -- cgit v1.2.3