summaryrefslogtreecommitdiff
path: root/extras/crystal.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-04-26 14:59:24 -0500
committerBryan Bishop <kanzure@gmail.com>2012-04-26 14:59:24 -0500
commit806687bf690f8cd50cbf0bd3b1502fea36656a02 (patch)
tree94cf022337e5220b7331c4b5ab143c82a8a93470 /extras/crystal.py
parentd37f9869712ded6feed36537932c75255a3665ae (diff)
fix off-by-one error in TextScript
Diffstat (limited to 'extras/crystal.py')
-rw-r--r--extras/crystal.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/extras/crystal.py b/extras/crystal.py
index c69c31cbe..e54614b92 100644
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -531,7 +531,7 @@ class TextScript:
end_address = offset + jump - 1 #we want the address before $57
- lines = process_00_subcommands(offset+1, end_address, debug=debug)
+ lines = process_00_subcommands(offset+1, end_address+1, debug=debug)
if show and debug:
text = parse_text_at2(offset+1, end_address-offset+1, debug=debug)
@@ -649,7 +649,8 @@ class TextScript:
jump = min([jump57, jump50, jump58])
end_address = offset + jump - 1 #we want the address before $57
- lines = process_00_subcommands(offset+1, end_address, debug=debug)
+
+ lines = process_00_subcommands(offset+1, end_address+1, debug=debug)
if show and debug:
text = parse_text_at2(offset+1, end_address-offset+1, debug=debug)
@@ -921,7 +922,7 @@ class EncodedText():
lines[line_count] = current_line
current_line = []
line_count += 1
-
+
#don't forget the last line
lines[line_count] = current_line
line_count += 1