summaryrefslogtreecommitdiff
path: root/src/flooritem.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-14 17:18:04 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-14 17:18:04 +0300
commit36de2c64d6bba077775360c9c0d681f0a096ffc3 (patch)
treee505ba9337b4eabb73d4d37cdc15d6e7c1f91727 /src/flooritem.cpp
parentd9a77eb8ac5d507665cbf8b20f5d8187148ebfd1 (diff)
downloadManaVerse-36de2c64d6bba077775360c9c0d681f0a096ffc3.tar.gz
ManaVerse-36de2c64d6bba077775360c9c0d681f0a096ffc3.tar.bz2
ManaVerse-36de2c64d6bba077775360c9c0d681f0a096ffc3.tar.xz
ManaVerse-36de2c64d6bba077775360c9c0d681f0a096ffc3.zip
chnage return values for draw functions from bool to void.
Diffstat (limited to 'src/flooritem.cpp')
-rw-r--r--src/flooritem.cpp7
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;
}