diff options
Diffstat (limited to 'src/compoundsprite.cpp')
-rw-r--r-- | src/compoundsprite.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp index 5214890c..6e8af72e 100644 --- a/src/compoundsprite.cpp +++ b/src/compoundsprite.cpp @@ -158,6 +158,12 @@ int CompoundSprite::getNumberOfLayers() const return size(); } +bool CompoundSprite::drawnWhenBehind() const +{ + // For now, just draw actors with only one layer when obscured + return (getNumberOfLayers() == 1); +} + size_t CompoundSprite::getCurrentFrame() const { SpriteConstIterator it, it_end; |