mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-02-13 21:18:13 +01:00
Added validatedata for dupliacte spawn areas
This commit is contained in:
@@ -64,6 +64,16 @@ public final class PredefinedMap {
|
||||
assert(size.height > 0);
|
||||
this.isOutdoors = isOutdoors;
|
||||
this.initialColorFilter = colorFilter;
|
||||
|
||||
if (AndorsTrailApplication.DEVELOPMENT_VALIDATEDATA) {
|
||||
for (int i = 0; i < spawnAreas.length; i++) {
|
||||
for (int j = i + 1; j < spawnAreas.length; j++) {
|
||||
if (spawnAreas[i].areaID.equals(spawnAreas[j].areaID)) {
|
||||
L.log("WARNING: duplicate areaID " + spawnAreas[i].areaID + " in map " + this.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final boolean isOutside(final Coord p) { return isOutside(p.x, p.y); }
|
||||
|
||||
Reference in New Issue
Block a user