diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-14 17:18:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-14 17:18:04 +0300 |
commit | 36de2c64d6bba077775360c9c0d681f0a096ffc3 (patch) | |
tree | e505ba9337b4eabb73d4d37cdc15d6e7c1f91727 /src/flooritem.cpp | |
parent | d9a77eb8ac5d507665cbf8b20f5d8187148ebfd1 (diff) | |
download | plus-36de2c64d6bba077775360c9c0d681f0a096ffc3.tar.gz plus-36de2c64d6bba077775360c9c0d681f0a096ffc3.tar.bz2 plus-36de2c64d6bba077775360c9c0d681f0a096ffc3.tar.xz plus-36de2c64d6bba077775360c9c0d681f0a096ffc3.zip |
chnage return values for draw functions from bool to void.
Diffstat (limited to 'src/flooritem.cpp')
-rw-r--r-- | src/flooritem.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/flooritem.cpp b/src/flooritem.cpp index 3019dca02..bd97f0ff8 100644 --- a/src/flooritem.cpp +++ b/src/flooritem.cpp @@ -100,11 +100,11 @@ std::string FloorItem::getName() const return info.getName(); } -bool FloorItem::draw(Graphics *const graphics, +void FloorItem::draw(Graphics *const graphics, const int offsetX, const int offsetY) const { if (!mMap) - return false; + return; BLOCK_START("FloorItem::draw") const int x = mX * mMap->getTileWidth() + offsetX; @@ -147,7 +147,7 @@ bool FloorItem::draw(Graphics *const graphics, const int px = getActorX() + offsetX; const int py = getActorY() + offsetY; ActorSprite::draw1(graphics, px, py); - const bool res = CompoundSprite::draw(graphics, px, py); + CompoundSprite::draw(graphics, px, py); if (mHighlight) { @@ -160,5 +160,4 @@ bool FloorItem::draw(Graphics *const graphics, } } BLOCK_END("FloorItem::draw") - return res; } |