forked from SilverStudioGames/WTS
Bug fix
* Fixed cho character function lacking explicit store reference for sprite_pos dict
This commit is contained in:
parent
01697bcb88
commit
12d9b7c095
@ -47,8 +47,8 @@ init python in character:
|
|||||||
layer = renpy.store.cho.layer
|
layer = renpy.store.cho.layer
|
||||||
|
|
||||||
if xpos is not None or ypos is not None:
|
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)
|
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 sprite_pos.get("y").get(ypos, ypos)
|
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)
|
renpy.store.cho.pos = (xpos, ypos)
|
||||||
redraw = True
|
redraw = True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user