X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.cpp;h=30d4f47aa3d6a7507d1ab690b135423237cd70da;hb=429b479f57d0a432b07deb320d8f3e9e7c75c5df;hp=59aff14683b26d6ab2d05a07094d2ce1cfa1468b;hpb=fcdac6a36d47d719a12f3db7a7f0a0ae59e47ef7;p=lugaru.git diff --git a/Source/Person.cpp b/Source/Person.cpp index 59aff14..30d4f47 100644 --- a/Source/Person.cpp +++ b/Source/Person.cpp @@ -174,15 +174,6 @@ void Person::CatchFire(){ onfire=1; } -bool Person::isSleeping(){ - if(targetanimation==sleepanim)return 1; - if(targetanimation==dead1anim)return 1; - if(targetanimation==dead2anim)return 1; - if(targetanimation==dead3anim)return 1; - if(targetanimation==dead4anim)return 1; - else return 0; -} - int Person::getIdle(){ if(indialogue!=-1&&howactive==typeactive&&creature==rabbittype)return talkidleanim; if(hasvictim&&victim!=this/*||(id==0&&attackkeydown)*/)if(/*(id==0&&attackkeydown)||*/(!victim->dead&&victim->aitype!=passivetype&&victim->aitype!=searchtype&&aitype!=passivetype&&aitype!=searchtype&&victim->id