summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-10 18:18:47 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-10 18:18:47 -0500
commit2c81361cc9d61dcf5050268157b3e7e92043b740 (patch)
tree9cd0dca0d06071851dcb460da6f777b307ebed8a /res
parent312a3738359cc4841cb3ce675583094becd8e830 (diff)
downloadtanetane-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')
-rw-r--r--res/scripts/common.lua4
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