diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-10 18:18:47 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-10 18:18:47 -0500 |
commit | 2c81361cc9d61dcf5050268157b3e7e92043b740 (patch) | |
tree | 9cd0dca0d06071851dcb460da6f777b307ebed8a /res/scripts | |
parent | 312a3738359cc4841cb3ce675583094becd8e830 (diff) | |
download | tanetane-2c81361cc9d61dcf5050268157b3e7e92043b740.tar.gz tanetane-2c81361cc9d61dcf5050268157b3e7e92043b740.tar.bz2 tanetane-2c81361cc9d61dcf5050268157b3e7e92043b740.zip |
loadMap requires a direction now, so party trails are set up correctly
Diffstat (limited to 'res/scripts')
-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 |