Skip to content

Commit

Permalink
Fix for at transform: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
madeddy authored Dec 3, 2022
1 parent 2f9810c commit 2ad0f08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions decompiler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,12 @@ def print_screen(self, ast):

elif isinstance(screen, renpy.sl2.slast.SLScreen):
def print_atl_callback(linenumber, indent_level, atl):
# HACK: This fixes the two statements on a line Error e.g.
# `at tranform:parallel:` or `at tranform:on show:`
# This is however probably a bad solution. The real reason
# is the permanent activated `skip_indent_until_write=True)`
# in line 134.
self.skip_indent_until_write = False
old_linenumber = self.linenumber
self.linenumber = linenumber
with self.increase_indent(indent_level - self.indent_level):
Expand Down

0 comments on commit 2ad0f08

Please # to comment.