comparison clients/editor/plugins/maploader.py @ 142:816b17db2bec

- small fix for editor maploader plugin - it passed a (never used) param to loadMapFile()
author chewie@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 05 Oct 2008 15:27:31 +0000
parents 4a0efb7baf70
children
comparison
equal deleted inserted replaced
141:5e85737281bc 142:816b17db2bec
20 } 20 }
21 self.newMap = None 21 self.newMap = None
22 22
23 def loadFile(self, path, filename): 23 def loadFile(self, path, filename):
24 content = path.split('/') 24 content = path.split('/')
25 self.newMap = loadMapFile('/'.join([path, filename]), self.engine, '/'.join(content) + '/') 25 print content
26 self.newMap = loadMapFile('/'.join([path, filename]), self.engine)
26 27
27 class MapSaver(plugin.Plugin): 28 class MapSaver(plugin.Plugin):
28 def __init__(self, engine): 29 def __init__(self, engine):
29 super(MapSaver,self).__init__() 30 super(MapSaver,self).__init__()
30 self.engine = engine 31 self.engine = engine