Skip to content

Commit

Permalink
Fix of stupid mistake and shape rendering a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
danila-schelkov committed Sep 6, 2021
1 parent ce5eafa commit 188795c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def init(first_init=False):
[[make_dirs(f'CSV/{i}-{k}') for k in ['Compressed', 'Decompressed']] for i in ['In', 'Out']]
Console.info(locale.verifying)

config.inited = True
config.initialized = True
config.version = get_tags('vorono4ka', 'xcoder')[0]['name'][1:]
config.dump()

Expand All @@ -74,14 +74,14 @@ def clear_dirs():
if __name__ == '__main__':
logger = Logger('en-EU')

if not config.inited:
if not config.initialized:
select_lang()

logger = Logger(config.lang)
locale = Locale()
locale.load_from(config.lang)

if not config.inited:
if not config.initialized:
init(True)
exit()

Expand Down
2 changes: 1 addition & 1 deletion system/lib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self):
self.lang: str = 'en-EU'
self.has_update: bool = False
self.last_update: int = -1
self.auto_update: bool = True
self.auto_update: bool = False

self.load()

Expand Down
2 changes: 1 addition & 1 deletion system/lib/objects/shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def render(self, swf):

rendered_region = region.render(swf)

image.paste(rendered_region, (int(shape_min_x - region_min_x), int(shape_max_y - region_max_y)))
image.paste(rendered_region, (int(shape_min_x - region_min_x), int(shape_max_y - region_max_y)), rendered_region)

return image

Expand Down

0 comments on commit 188795c

Please sign in to comment.