From 02dcaf96fe6c70dc4733e83167162392ab0c61ab Mon Sep 17 00:00:00 2001 From: akirschbaum Date: Sun, 13 Jun 2010 06:34:31 +0000 Subject: [PATCH] Adapt WorldMaker plugin script to current Gridarta. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13395 282e977c-c81d-0410-88c4-b93c2d0d6712 --- editor/scripts/WorldMaker | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/editor/scripts/WorldMaker b/editor/scripts/WorldMaker index 053233798..e431715c2 100644 --- a/editor/scripts/WorldMaker +++ b/editor/scripts/WorldMaker @@ -35,8 +35,9 @@ boolean updateMap(File mapFile, File pictureFile) { return false; } print("converting " + mapFile + " to " + pictureFile + "."); - map = mapManager.openMapFile(mapFile, false); - if (map == null) { + try { + map = mapManager.openMapFile(mapFile, false); + } catch (IOException ex) { return false; } try {