]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Person.h
Simplify stop animations
[lugaru.git] / Source / Person.h
index 28f21b559b6cc57250e7840010bec627b14528fb..a745481f4d996f7cece4b26ae5ce18fd52692f33 100644 (file)
@@ -353,8 +353,14 @@ class Person
                }
                int getCrouch();
                
-               bool wasStop();
-               bool isStop();
+               bool wasStop()
+               {
+                 return animation_bits[currentanimation] & ab_stop;
+               }
+               bool isStop()
+               {
+                 return animation_bits[targetanimation] & ab_stop;
+               }
                int getStop();
                
                bool wasSneak();