summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-13 23:24:50 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-13 23:24:50 +0000
commit9e6862623370f53d1b78e4bd167152b840e28884 (patch)
tree21071f17a775b101163dabc31e6aeefedf199c12 /src/animatedsprite.cpp
parentafc770043be553998555e9ac1cffca68dc482d48 (diff)
downloadmana-9e6862623370f53d1b78e4bd167152b840e28884.tar.gz
mana-9e6862623370f53d1b78e4bd167152b840e28884.tar.bz2
mana-9e6862623370f53d1b78e4bd167152b840e28884.tar.xz
mana-9e6862623370f53d1b78e4bd167152b840e28884.zip
Verify the gender to prevent crashing when something is wrong with the communication.
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r--src/animatedsprite.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp
index d1201042..8f9c0600 100644
--- a/src/animatedsprite.cpp
+++ b/src/animatedsprite.cpp
@@ -34,7 +34,8 @@ AnimatedSprite::AnimatedSprite(const std::string& animationFile, int variant):
mAction(NULL),
mDirection(DIRECTION_DOWN),
mLastTime(0),
- mSpeed(1.0f)
+ mSpeed(1.0f),
+ mAnimationFile(animationFile)
{
int size;
ResourceManager *resman = ResourceManager::getInstance();
@@ -249,7 +250,8 @@ AnimatedSprite::play(SpriteAction action, int time)
if (i == mActions.end())
{
- logger->log("Warning: no action \"%u\" defined!", action);
+ //logger->log("Warning: no action %u defined for \"%s\"!",
+ // action, mAnimationFile.c_str());
mAction = NULL;
return;
}