summaryrefslogtreecommitdiffstats
path: root/src/animation
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-05-18 13:06:40 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-24 20:42:10 +0200
commitc7821635fde41f2302d7f755ae80d8f1a3c815b7 (patch)
treefb529923f5e878c5393897360c5d0a21f2a4b420 /src/animation
parentFix C3dMarkers::PlaceMarker calls in Radar (diff)
downloadre3-c7821635fde41f2302d7f755ae80d8f1a3c815b7.tar
re3-c7821635fde41f2302d7f755ae80d8f1a3c815b7.tar.gz
re3-c7821635fde41f2302d7f755ae80d8f1a3c815b7.tar.bz2
re3-c7821635fde41f2302d7f755ae80d8f1a3c815b7.tar.lz
re3-c7821635fde41f2302d7f755ae80d8f1a3c815b7.tar.xz
re3-c7821635fde41f2302d7f755ae80d8f1a3c815b7.tar.zst
re3-c7821635fde41f2302d7f755ae80d8f1a3c815b7.zip
Diffstat (limited to 'src/animation')
-rw-r--r--src/animation/AnimBlendAssociation.cpp6
-rw-r--r--src/animation/AnimBlendAssociation.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/animation/AnimBlendAssociation.cpp b/src/animation/AnimBlendAssociation.cpp
index bb4e7bf4..a65f0fc5 100644
--- a/src/animation/AnimBlendAssociation.cpp
+++ b/src/animation/AnimBlendAssociation.cpp
@@ -230,3 +230,9 @@ CAnimBlendAssociation::UpdateBlend(float timeDelta)
return true;
}
+
+void
+CAnimBlendAssociation::Remove()
+{
+ delete this;
+}
diff --git a/src/animation/AnimBlendAssociation.h b/src/animation/AnimBlendAssociation.h
index dbfcb722..da026e01 100644
--- a/src/animation/AnimBlendAssociation.h
+++ b/src/animation/AnimBlendAssociation.h
@@ -81,6 +81,7 @@ public:
void UpdateTimeStep(float timeDelta, float relSpeed);
bool UpdateTime(float timeDelta, float relSpeed);
bool UpdateBlend(float timeDelta);
+ void Remove();
void SetRun(void) { flags |= ASSOC_RUNNING; }