diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-19 00:26:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-19 01:12:11 +0300 |
commit | d0a53b203f918c24837527e15cdc84c807de49ea (patch) | |
tree | 306f20a7c97e9848ef46f18d0b8d1a2c0a3c31f1 /src/resources/sprite/animatedsprite_unittest.cc | |
parent | bacd8cd50129135afb1535756b17e8c61f98eeee (diff) | |
download | manaverse-d0a53b203f918c24837527e15cdc84c807de49ea.tar.gz manaverse-d0a53b203f918c24837527e15cdc84c807de49ea.tar.bz2 manaverse-d0a53b203f918c24837527e15cdc84c807de49ea.tar.xz manaverse-d0a53b203f918c24837527e15cdc84c807de49ea.zip |
Fix unit tests (add missing random initialisation).
Also fix sprites animation if random number is zero.
Diffstat (limited to 'src/resources/sprite/animatedsprite_unittest.cc')
-rw-r--r-- | src/resources/sprite/animatedsprite_unittest.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/sprite/animatedsprite_unittest.cc b/src/resources/sprite/animatedsprite_unittest.cc index 715ce76b8..c924580a6 100644 --- a/src/resources/sprite/animatedsprite_unittest.cc +++ b/src/resources/sprite/animatedsprite_unittest.cc @@ -34,6 +34,7 @@ #include "resources/animation/animation.h" #include "utils/env.h" +#include "utils/mrand.h" #include "utils/physfstools.h" #include "debug.h" @@ -42,6 +43,7 @@ TEST_CASE("AnimatedSprite tests", "animatedsprite") { setEnv("SDL_VIDEODRIVER", "dummy"); + initRand(); client = new Client; PHYSFS_init("manaplus"); dirSeparator = "/"; |