X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.h;h=28f21b559b6cc57250e7840010bec627b14528fb;hb=797dc38c1623b98280500df2ab37edba4effabea;hp=8f8006ad3a0e24df9924f1061a864451565d4c30;hpb=cc377fcd2e0bb5bc2ea9bda2dec2210bca474dbe;p=lugaru.git diff --git a/Source/Person.h b/Source/Person.h index 8f8006a..28f21b5 100644 --- a/Source/Person.h +++ b/Source/Person.h @@ -361,8 +361,14 @@ class Person bool isSneak(); int getSneak(); - bool wasRun(); - bool isRun(); + bool wasRun() + { + return animation_bits[currentanimation] & ab_run; + } + bool isRun() + { + return animation_bits[targetanimation] & ab_run; + } int getRun(); bool wasLanding();