X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.h;h=8f8006ad3a0e24df9924f1061a864451565d4c30;hb=cc377fcd2e0bb5bc2ea9bda2dec2210bca474dbe;hp=e036f884925199ebb57583b0470c7fdced4a620a;hpb=fcdac6a36d47d719a12f3db7a7f0a0ae59e47ef7;p=lugaru.git diff --git a/Source/Person.h b/Source/Person.h index e036f88..8f8006a 100644 --- a/Source/Person.h +++ b/Source/Person.h @@ -337,11 +337,20 @@ class Person { return animation_bits[targetanimation] & ab_sit; } - bool isSleeping(); - - - bool wasCrouch(); - bool isCrouch(); + + bool isSleeping() + { + return animation_bits[targetanimation] & ab_sleep; + } + + bool wasCrouch() + { + return animation_bits[currentanimation] & ab_crouch; + } + bool isCrouch() + { + return animation_bits[targetanimation] & ab_crouch; + } int getCrouch(); bool wasStop();