diff options
Diffstat (limited to 'src/resources/spritedef.cpp')
-rw-r--r-- | src/resources/spritedef.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |