Skip to content

Commit

Permalink
Bugfixes: Hide if not place did not check for a place. No error check…
Browse files Browse the repository at this point in the history
…ing on the number of errors permissible.
  • Loading branch information
Enthalpy-AC committed Oct 2, 2016
1 parent d639046 commit a43cd58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frame_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ def set_sprite(self, prefix, suffix):
self.frame["characters"].append(char)
if not self.camera_override:
self.frame["place_position"] = char["position"]
if self.hide_if_no_place and not self.erase_override:
if self.hide_if_no_place and not self.frame["place"] and (
not self.erase_override):
self.frame["characters_erase_previous"] = True

@special
Expand Down
4 changes: 4 additions & 0 deletions upload_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ def parse_file():
print(sys.exc_info()[1].message.format(
"line {}".format(2*i+1), file_name))
terminate()
try:
max_err = int_at_least(lines[9], 1, "Maximum errors allowable")
except Invalid:
print(sys.exc_info()[1].message.format("line 10", file_name))
return lines[5], {
"username": lines[1], "password": lines[3],
"trial_id": lines[7]
Expand Down

0 comments on commit a43cd58

Please sign in to comment.