diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-05-17 19:36:48 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-05-17 20:01:52 +0200 |
commit | 84f8312b8666b2774eafbbb0e6d034ba598fd69c (patch) | |
tree | a901ba3684ab78346f415a6a4d3920312fb92c84 /src/animation/AnimBlendAssociation.h | |
parent | Weapon fixes (diff) | |
download | re3-84f8312b8666b2774eafbbb0e6d034ba598fd69c.tar re3-84f8312b8666b2774eafbbb0e6d034ba598fd69c.tar.gz re3-84f8312b8666b2774eafbbb0e6d034ba598fd69c.tar.bz2 re3-84f8312b8666b2774eafbbb0e6d034ba598fd69c.tar.lz re3-84f8312b8666b2774eafbbb0e6d034ba598fd69c.tar.xz re3-84f8312b8666b2774eafbbb0e6d034ba598fd69c.tar.zst re3-84f8312b8666b2774eafbbb0e6d034ba598fd69c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/animation/AnimBlendAssociation.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/animation/AnimBlendAssociation.h b/src/animation/AnimBlendAssociation.h index 90e0cfd9..f6d98fc3 100644 --- a/src/animation/AnimBlendAssociation.h +++ b/src/animation/AnimBlendAssociation.h @@ -84,7 +84,8 @@ public: void SetRun(void) { flags |= ASSOC_RUNNING; } - inline float GetTimeLeft() { return hierarchy->totalLength - currentTime; } + float GetTimeLeft() { return hierarchy->totalLength - currentTime; } + float GetProgress() { return currentTime / hierarchy->totalLength; } static CAnimBlendAssociation *FromLink(CAnimBlendLink *l) { return (CAnimBlendAssociation*)((uint8*)l - offsetof(CAnimBlendAssociation, link)); |