From 9eda15c280994411982bc2a370ba9316efa7db55 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 25 Mar 2015 20:33:24 +0100 Subject: [PATCH] - fixed: The recent ANIMDEFS extension missed adjusting the call to AddSimpleAnim for ANIMATED-defined animations. --- src/textures/animations.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/textures/animations.cpp b/src/textures/animations.cpp index 684869cf07..ffff062c63 100644 --- a/src/textures/animations.cpp +++ b/src/textures/animations.cpp @@ -253,7 +253,8 @@ void FTextureManager::InitAnimated (void) } // Speed is stored as tics, but we want ms so scale accordingly. - AddSimpleAnim (pic1, pic2 - pic1 + 1, animtype, Scale (animspeed, 1000, 35)); + FAnimDef *adef = AddSimpleAnim (pic1, pic2 - pic1 + 1, Scale (animspeed, 1000, 35)); + if (adef != NULL) adef->AnimType = animtype; } } }