Permalink
Browse files

OK now we're onto some really bad shit

  • Loading branch information...
Rodeo314 committed Jan 12, 2018
1 parent 694769d commit 8c97a0223c3ba191285f13f4d1a6daa7025a98b5
Showing with 7 additions and 7 deletions.
  1. +7 −7 OrthoToolCLI.swift
View
@@ -254,7 +254,6 @@ private class DSFTile : Comparable {
}
private func parseTextDSF(at textURL: URL) -> Bool {
return true//fixme//debug
if (self.resDone == true) {
return true
}
@@ -265,17 +264,18 @@ private class DSFTile : Comparable {
var curLine = lParser!.getNextLine()
while (curLine != nil) {
if (curLine!.hasPrefix("TERRAIN_DEF terrain/") && curLine!.hasSuffix(".ter")) {
self.terList!.append("terrain/" + URL(fileURLWithPath: curLine!).lastPathComponent)
//fixme: disabled for now, if all lists are empty then memory usage can't come from lists themselves
// self.terList!.append("terrain/" + URL(fileURLWithPath: curLine!).lastPathComponent)
curLine = lParser!.getNextLine()
continue
}
curLine = lParser!.getNextLine()
}
lParser = nil
if (self.terList!.isEmpty) {
OrthoToolCLI.error("ERROR: no .ter file definitions found")
return false
}
// if (self.terList!.isEmpty) {
// OrthoToolCLI.error("ERROR: no .ter file definitions found")
// return false
// }
return true
}
@@ -466,7 +466,7 @@ private class DSFTile : Comparable {
}
currIndex += 1
}
self.dsfTiles = tempTiles//fixme//debug
self.dsfTiles = tempTiles//fixme//debug so we can run the same tile multiple times
// if (tempTiles.isEmpty == false) {
// tempTiles.sort() // sort and resolve duplicates
// var lastTile : DSFTile? = nil

0 comments on commit 8c97a02

Please sign in to comment.