From 2c81361cc9d61dcf5050268157b3e7e92043b740 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 10 Feb 2021 18:18:47 -0500 Subject: loadMap requires a direction now, so party trails are set up correctly --- res/scripts/common.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'res/scripts/common.lua') 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) local oldState = playerSprite.characterState FadeToBlack(150) - loadMap("../res/maps/" .. map .. ".tmx", warp) + loadMap("../res/maps/" .. map .. ".tmx", warp, direction) local newPlayerId = getControllableSprite() - SetPartyDirection(newPlayerId, direction) - if oldState == CharacterState.RUNNING then character():startRunning(newPlayerId) end -- cgit 1.4.1