From 2ff3df08fa993d1bf1f00f47f7cbad7b60ce3ce3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Sep 2014 20:35:32 +0300 Subject: In features.xml add option for fix dead animations. New option: fixDeadAnimation Default value: true --- src/resources/spritedef.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/resources') diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp index 74ac376b5..7b89af145 100644 --- a/src/resources/spritedef.cpp +++ b/src/resources/spritedef.cpp @@ -22,7 +22,9 @@ #include "resources/spritedef.h" +#include "configuration.h" #include "logger.h" +#include "settings.h" #include "resources/map/mapconsts.h" @@ -34,8 +36,6 @@ #include "resources/spriteaction.h" #include "resources/spritereference.h" -#include "configuration.h" - #include "debug.h" SpriteReference *SpriteReference::Empty = nullptr; @@ -106,7 +106,7 @@ SpriteDef *SpriteDef::load(const std::string &animationFile, def->mProcessedFiles.insert(animationFile); def->loadSprite(rootNode, variant, palettes); def->substituteActions(); - if (serverVersion < 1) + if (settings.fixDeadAnimation) def->fixDeadAction(); if (prot) { -- cgit v1.2.3-70-g09d2