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 --- src/character_system.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/character_system.cpp') diff --git a/src/character_system.cpp b/src/character_system.cpp index 94833a8..781b50d 100644 --- a/src/character_system.cpp +++ b/src/character_system.cpp @@ -24,7 +24,11 @@ void CharacterSystem::addSpriteToParty(int leaderId, int followerId) { targetPos = backFollower.loc; } - Direction toFace = directionFacingPoint(targetPos - follower.loc); + Direction toFace = leader.dir; + if (targetPos != follower.loc) { + toFace = directionFacingPoint(targetPos - follower.loc); + } + for (int i=0; i(PARTY_FRAME_DELAY) + targetPos; follower.trail.push_front({.pos = tween, .dir = toFace}); -- cgit 1.4.1