quick fix for PokedexText

This commit is contained in:
Bryan Bishop 2012-05-23 17:39:30 -05:00
parent 0c778f2930
commit 1663472cf6

View File

@ -2324,6 +2324,10 @@ class MainText(TextCommand):
def parse(self): def parse(self):
offset = self.address offset = self.address
# the code below assumes we're jumping past a $0 byte
if use_zero == False:
offset = offset - 1
# read until $50, $57 or $58 (not sure about $58...) # read until $50, $57 or $58 (not sure about $58...)
jump57 = how_many_until(chr(0x57), offset) jump57 = how_many_until(chr(0x57), offset)
jump50 = how_many_until(chr(0x50), offset) jump50 = how_many_until(chr(0x50), offset)