Skip to content

Commit 034dd78

Browse files
committed
fix setVelocity issue in npcs
1 parent fd2f49b commit 034dd78

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Server/Components/NPCs/NPC/npc.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,10 @@ void NPC::setVelocity(Vector3 velocity, bool update)
551551
{
552552
velocity_ = velocity;
553553
}
554+
else if (!moving_)
555+
{
556+
velocity_ = velocity;
557+
}
554558

555559
needsVelocityUpdate_ = update;
556560
}

0 commit comments

Comments
 (0)