X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.h;h=8f8006ad3a0e24df9924f1061a864451565d4c30;hb=cc377fcd2e0bb5bc2ea9bda2dec2210bca474dbe;hp=1749a565791c561d4936c3940edb3d178feb62d8;hpb=4b65ff967257d8cfd673257e464c3e3e35822ec1;p=lugaru.git diff --git a/Source/Person.h b/Source/Person.h index 1749a56..8f8006a 100644 --- a/Source/Person.h +++ b/Source/Person.h @@ -342,9 +342,15 @@ class Person { return animation_bits[targetanimation] & ab_sleep; } - - bool wasCrouch(); - bool isCrouch(); + + bool wasCrouch() + { + return animation_bits[currentanimation] & ab_crouch; + } + bool isCrouch() + { + return animation_bits[targetanimation] & ab_crouch; + } int getCrouch(); bool wasStop();