Only loop NPC movement if the NPC has a looping path assigned

Allows paths to terminate.
Also fixes a bug where follower NPCs sometimes oscillate their positions.
This commit is contained in:
gsemaj
2021-05-09 08:37:36 -04:00
parent e5d9e7217e
commit 6f59001be1
5 changed files with 14 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ struct NPCPath {
int speed;
int escortTaskID;
bool isRelative;
bool isLoop;
};
namespace Transport {