diff options
| author | Japa | 2010-06-25 14:05:19 +0000 |
|---|---|---|
| committer | Japa | 2010-06-25 14:05:19 +0000 |
| commit | 83ca2eca776c362110137a489c7bda42ec99a5d2 (patch) | |
| tree | e411cfd77eb3f8c143496604d4fd18d0a32338ce /Creatures.cpp | |
| parent | 313d5fd88087eded7fb9cfa24419b34d2fdaf23f (diff) | |
| download | stonesense-83ca2eca776c362110137a489c7bda42ec99a5d2.tar.gz stonesense-83ca2eca776c362110137a489c7bda42ec99a5d2.tar.bz2 stonesense-83ca2eca776c362110137a489c7bda42ec99a5d2.tar.xz | |
all sprites other than buildings are now object oriented and seem to be working niceley
ToDo: get mud working again.
Diffstat (limited to 'Creatures.cpp')
| -rw-r--r-- | Creatures.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Creatures.cpp b/Creatures.cpp index bc1f5bf..e843076 100644 --- a/Creatures.cpp +++ b/Creatures.cpp @@ -466,9 +466,10 @@ CreatureConfiguration *GetCreatureConfig( t_creature* c ){ c_sprite* GetCreatureSpriteMap( t_creature* c )
{
+ static c_sprite * defaultSprite = new c_sprite;
CreatureConfiguration *testConfig = GetCreatureConfig( c );
if (testConfig == NULL)
- return new c_sprite;
+ return defaultSprite;
return &(testConfig->sprite);
}
|
