Adapt MapValidator script to Gridarta changes.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@8799 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
49fcdeafa7
commit
7c2249eedc
|
@ -27,8 +27,9 @@ void checkMap(File mapFile, String mapPath) {
|
|||
}
|
||||
ErrorCollector errorCollector;
|
||||
try {
|
||||
errorCollector = mainControl.runMapValidation(map.getMapModel());
|
||||
mainControl.validateMap(map.getMapModel());
|
||||
} finally {
|
||||
errorCollector = map.getMapModel().getErrors();
|
||||
if (map.nViews() <= 0) {
|
||||
mainControl.getMapManager().closeLevel(map);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue