summaryrefslogtreecommitdiff
path: root/src/flooritem.cpp
diff options
context:
space:
mode:
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));