From c96b3363b2b31002f1868826ea3bb8d00e4857b9 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Sat, 6 Nov 2010 15:27:52 -0400 Subject: [PATCH] Fixed bug in signpost handling code Two of the coordinates were flipped in markers.js Also, overviewer.dat is now removed with -d --- chunk.py | 4 ++-- gmap.py | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/chunk.py b/chunk.py index a2c90dd..454a7de 100644 --- a/chunk.py +++ b/chunk.py @@ -626,8 +626,8 @@ class ChunkRenderer(object): # coordinates to global world coordinates newPOI = dict(type="sign", x= entity['x'], - y= entity['z'], - z= entity['y'], + y= entity['y'], + z= entity['z'], msg="%s\n%s\n%s\n%s" % (entity['Text1'], entity['Text2'], entity['Text3'], entity['Text4']), chunk= (self.chunkX, self.chunkY), diff --git a/gmap.py b/gmap.py index 1021c43..43f37b0 100755 --- a/gmap.py +++ b/gmap.py @@ -145,6 +145,12 @@ def delete_all(worlddir, tiledir): logging.info("Deleting {0}".format(filepath)) os.unlink(filepath) + # delete the overviewer.dat persistant data file + datfile = os.path.join(worlddir,"overviewer.dat") + if os.path.exists(datfile): + os.unlink(datfile) + logging.info("Deleting {0}".format(datfile)) + def list_worlds(): "Prints out a brief summary of saves found in the default directory" print