]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Person.h
Simplify land animations
[lugaru.git] / Source / Person.h
index a745481f4d996f7cece4b26ae5ce18fd52692f33..56d4f5490b87fe0562558594702b723037d25f97 100644 (file)
@@ -376,9 +376,15 @@ class Person
                  return animation_bits[targetanimation] & ab_run;
                }
                int getRun();
-               
-               bool wasLanding();
-               bool isLanding();
+
+               bool wasLanding()
+               {
+                 return animation_bits[currentanimation] & ab_land;
+               }
+               bool isLanding()
+               {
+                 return animation_bits[targetanimation] & ab_land;
+               }
                int getLanding();
                
                bool wasLandhard();