]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Objects/Person.cpp
New non-atacking player
[lugaru.git] / Source / Objects / Person.cpp
index d0e8f083742ffd22baf8a5b7b864382d29f0af66..8022c0fc3323f023bc485bb3ff2eb20a7ae12ad9 100644 (file)
@@ -169,6 +169,7 @@ Person::Person()
 
     victim(nullptr)
     , hasvictim(false)
+    , isplayerfriend(false)
     ,
 
     updatedelay(0)
@@ -7324,7 +7325,7 @@ bool Person::addClothes(const int& clothesId)
 
 void Person::doAI()
 {
-    if (!isPlayerControlled() && !Dialog::inDialog()) {
+    if (!isPlayerControlled() && !isPlayerFriend() && !Dialog::inDialog()) {
         jumpclimb = 0;
         //disable movement in editor
         if (Game::editorenabled) {