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
master
akirschbaum 2010-06-13 06:34:31 +00:00
parent 1ac5b7ecb9
commit 02dcaf96fe
1 changed files with 3 additions and 2 deletions

View File

@ -35,8 +35,9 @@ boolean updateMap(File mapFile, File pictureFile) {
return false; return false;
} }
print("converting " + mapFile + " to " + pictureFile + "."); print("converting " + mapFile + " to " + pictureFile + ".");
map = mapManager.openMapFile(mapFile, false); try {
if (map == null) { map = mapManager.openMapFile(mapFile, false);
} catch (IOException ex) {
return false; return false;
} }
try { try {