* Fixed cho character function lacking explicit store reference for sprite_pos dict
This commit is contained in:
LoafyLemon 2023-05-04 15:33:05 +01:00
parent 01697bcb88
commit 12d9b7c095

View File

@ -47,8 +47,8 @@ init python in character:
layer = renpy.store.cho.layer
if xpos is not None or ypos is not None:
xpos = renpy.store.cho.pos[0] if xpos is None else sprite_pos.get("x").get(xpos, xpos)
ypos = renpy.store.cho.pos[1] if ypos is None else sprite_pos.get("y").get(ypos, ypos)
xpos = renpy.store.cho.pos[0] if xpos is None else renpy.store.sprite_pos.get("x").get(xpos, xpos)
ypos = renpy.store.cho.pos[1] if ypos is None else renpy.store.sprite_pos.get("y").get(ypos, ypos)
renpy.store.cho.pos = (xpos, ypos)
redraw = True