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