]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Person.cpp
Simplify sleep animations
[lugaru.git] / Source / Person.cpp
index 6eb59f04a07e1b240bcf49a60399160a5a3773ad..3f643607323b49c4f8a419b3bf85d678d384b04e 100644 (file)
@@ -174,21 +174,6 @@ void Person::CatchFire(){
        onfire=1;
 }
 
-bool Person::isSitting(){
-       if(targetanimation==sitanim)return 1;
-       if(targetanimation==sitwallanim)return 1;
-       else return 0;
-}
-
-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<numplayers)){