]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Person.h
Simplify crouch animations
[lugaru.git] / Source / Person.h
index e036f884925199ebb57583b0470c7fdced4a620a..8f8006ad3a0e24df9924f1061a864451565d4c30 100644 (file)
@@ -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();