From 36de2c64d6bba077775360c9c0d681f0a096ffc3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 14 Dec 2013 17:18:04 +0300 Subject: chnage return values for draw functions from bool to void. --- src/flooritem.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/flooritem.cpp') 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; } -- cgit v1.2.3-70-g09d2