Fix map parsing for quest format maps.

Bah, the one place a single char lex is needed :P
This commit is contained in:
Bill Currie 2012-09-10 08:08:37 +09:00
parent da6f57a23b
commit 9dc1039686

View file

@ -137,10 +137,10 @@ def parse_vector(script):
return v
def parse_verts(script):
if script.token != ":":
if script.token[0] != ":":
map_error(script, "Missing :")
script.getToken()
numverts = int(script.token)
#script.getToken()
numverts = int(script.token[1:])
verts = []
for i in range(numverts):
script.tokenAvailable(True)