summaryrefslogtreecommitdiff
path: root/src/flooritem.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-06 00:04:33 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-06 00:04:33 +0300
commit7b155f111daf5d7ae477b16d0f0789b1113bea74 (patch)
tree2d2711ab1f9daed793171383af1a7e1fa6ff737c /src/flooritem.cpp
parentc3afff20d4989ab2835545715bbe67e5b5d9b353 (diff)
downloadplus-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.gz
plus-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.bz2
plus-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.xz
plus-7b155f111daf5d7ae477b16d0f0789b1113bea74.zip
Fix some issues after auto checking.
Diffstat (limited to 'src/flooritem.cpp')
-rw-r--r--src/flooritem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flooritem.cpp b/src/flooritem.cpp
index acbfe8363..0bb75fb1f 100644
--- a/src/flooritem.cpp
+++ b/src/flooritem.cpp
@@ -89,9 +89,6 @@ bool FloorItem::draw(Graphics *graphics, int offsetX, int offsetY) const
if (!mMap)
return false;
- const int dx = 32;
- const int dy = 32;
-
const int x = mX * mMap->getTileWidth() + offsetX;
const int y = mY * mMap->getTileHeight() + offsetY;
gcn::Font *font = nullptr;
@@ -102,6 +99,9 @@ bool FloorItem::draw(Graphics *graphics, int offsetX, int offsetY) const
font = gui->getFont();
if (mDropTime < curTime)
{
+ const int dx = 32;
+ const int dy = 32;
+
if (curTime > mDropTime + 28 && curTime < mDropTime + 50)
{
graphics->setColor(gcn::Color(80, 200, 20, 200));