diff options
| author | Japa | 2010-06-25 15:25:10 +0000 |
|---|---|---|
| committer | Japa | 2010-06-25 15:25:10 +0000 |
| commit | c4928171fc215e6dc55086a5867dcaecbb6a033a (patch) | |
| tree | e7e6e635dc191777fb392a9f5773cfefa6d04dc8 /ConditionalSprite.cpp | |
| parent | 83ca2eca776c362110137a489c7bda42ec99a5d2 (diff) | |
| download | stonesense-c4928171fc215e6dc55086a5867dcaecbb6a033a.tar.gz stonesense-c4928171fc215e6dc55086a5867dcaecbb6a033a.tar.bz2 stonesense-c4928171fc215e6dc55086a5867dcaecbb6a033a.tar.xz | |
Switched buildings over to the new sprite system.
as of now, all sprites have the same featureset. yay me!
Diffstat (limited to 'ConditionalSprite.cpp')
| -rw-r--r-- | ConditionalSprite.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ConditionalSprite.cpp b/ConditionalSprite.cpp index 4e2c8fc..0a71ac7 100644 --- a/ConditionalSprite.cpp +++ b/ConditionalSprite.cpp @@ -159,15 +159,12 @@ SpriteElement::SpriteElement() : SpriteNode()
{
//cout << "SpriteElement +" << endl;
- sprite.sheetIndex = -1;
- sprite.x = 0;
- sprite.y = 0;
- sprite.animFrames = 0;
+ sprite.set_sheetindex(-1);
}
bool SpriteElement::BlockMatches(Block* b)
{
- if (sprite.sheetIndex > -1)
+ if (sprite.get_sheetindex() > -1)
{
b->building.sprites.push_back(sprite);
}
|
