@ -4,7 +4,7 @@
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the DWFYWT
# and/or modify it under the terms of the DWT FYWT
# Public License, Version 2, as published by Sam Hocevar. See
# COPYING for more details.
@ -165,10 +165,7 @@ drawunderground = False
geometry_string = None
region_string = None
#for o, a in opts:
opt_index = 0
while opt_index < len ( opts ) :
o , a = opts [ opt_index ]
for o , a in opts :
if o in ( " -h " , " --help " ) :
usage ( )
sys . exit ( )
@ -197,10 +194,8 @@ while opt_index <len(opts):
geometry_string = a
elif o == " --region " :
region_string = a
#region_string = xmin_string+" "+xmax_string+" "+zmin_string+" "+zmax_string
else :
assert False , " unhandled option "
opt_index + = 1
nonchunky_xmin = - 1500
nonchunky_xmax = 1500
nonchunky_zmin = - 1500
@ -388,7 +383,7 @@ if os.path.exists(path + "sectors"):
zlist . append ( z )
if len ( xlist ) == 0 or len ( zlist ) == 0 :
print ( " At this chunk data does not exist. " )
print ( " At this chunk, data does not exist. " )
sys . exit ( 1 )
# Get rid of doubles