Bind map_error to the script object.

This works much better :)
This commit is contained in:
Bill Currie 2012-09-10 14:59:43 +09:00
parent f525be0880
commit ae942afe5c

View file

@ -255,7 +255,7 @@ def map_error(self, msg):
def parse_map(filename):
text = open(filename, "rt").read()
script = Script(filename, text, single="")
script.error = map_error
script.error = map_error.__get__(script, Script)
entities = []
global texdefs
texdefs = []