diff options
| author | Japa | 2010-08-26 01:54:21 +0000 |
|---|---|---|
| committer | Japa | 2010-08-26 01:54:21 +0000 |
| commit | d724a4171471f7bc62174607b63623f25d2a741b (patch) | |
| tree | c2624e250ccc4474a4a49719a2e2f3103089147d /Creatures.cpp | |
| parent | 5bf4fbd9803dddc2d93a8e8fdcffdc42fa25588e (diff) | |
| download | stonesense-d724a4171471f7bc62174607b63623f25d2a741b.tar.gz stonesense-d724a4171471f7bc62174607b63623f25d2a741b.tar.bz2 stonesense-d724a4171471f7bc62174607b63623f25d2a741b.tar.xz | |
Fixed creatures with no specified sheet using the object sheet, rather than the creature sheet.
Diffstat (limited to 'Creatures.cpp')
| -rw-r--r-- | Creatures.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Creatures.cpp b/Creatures.cpp index 72f3dc0..3a1a3b4 100644 --- a/Creatures.cpp +++ b/Creatures.cpp @@ -464,10 +464,12 @@ CreatureConfiguration *GetCreatureConfig( t_creature* c ){ c_sprite* GetCreatureSpriteMap( t_creature* c )
{
static c_sprite * defaultSprite = new c_sprite;
+ defaultSprite->reset();
defaultSprite->set_defaultsheet(IMGCreatureSheet);
CreatureConfiguration *testConfig = GetCreatureConfig( c );
if (testConfig == NULL)
return defaultSprite;
+ testConfig->sprite.set_defaultsheet(IMGCreatureSheet);
return &(testConfig->sprite);
}
|
