diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/scripts/common.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/res/scripts/common.lua b/res/scripts/common.lua index 9674b2c..23c07cc 100644 --- a/res/scripts/common.lua +++ b/res/scripts/common.lua | |||
@@ -92,11 +92,9 @@ function ChangeMap(map, warp) | |||
92 | local oldState = playerSprite.characterState | 92 | local oldState = playerSprite.characterState |
93 | 93 | ||
94 | FadeToBlack(150) | 94 | FadeToBlack(150) |
95 | loadMap("../res/maps/" .. map .. ".tmx", warp) | 95 | loadMap("../res/maps/" .. map .. ".tmx", warp, direction) |
96 | 96 | ||
97 | local newPlayerId = getControllableSprite() | 97 | local newPlayerId = getControllableSprite() |
98 | SetPartyDirection(newPlayerId, direction) | ||
99 | |||
100 | if oldState == CharacterState.RUNNING then | 98 | if oldState == CharacterState.RUNNING then |
101 | character():startRunning(newPlayerId) | 99 | character():startRunning(newPlayerId) |
102 | end | 100 | end |