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-b93c2d0d6712master
parent
1ac5b7ecb9
commit
02dcaf96fe
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue