Skip to content

Commit 2de4fd8

Browse files
committed
fix rotation anim with AI_Flee
1 parent ad18f1c commit 2de4fd8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

game/world/objects/npc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,12 +1622,12 @@ bool Npc::implAiFlee(uint64_t dt) {
16221622
if(wp==nullptr || oth.qDistTo(wp)<oth.qDistTo(*this)) {
16231623
auto dx = oth.x-x;
16241624
auto dz = oth.z-z;
1625-
if(implTurnTo(-dx,-dz,false,dt))
1625+
if(implTurnTo(-dx,-dz,(go2.flag!=GT_No),dt))
16261626
return (go2.flag==GT_Flee);
16271627
} else {
16281628
auto dx = wp->x-x;
16291629
auto dz = wp->z-z;
1630-
if(implTurnTo(dx,dz,false,dt))
1630+
if(implTurnTo(dx,dz,(go2.flag!=GT_No),dt))
16311631
return (go2.flag==GT_Flee);
16321632
}
16331633

0 commit comments

Comments
 (0)