Tiny fixes

This commit is contained in:
Ahmed Samy 2013-12-15 04:33:43 +02:00
parent 1790eee1c6
commit e32607b05c
1 changed files with 4 additions and 3 deletions

View File

@ -73,10 +73,9 @@ void Tile::draw(const Point& dest, float scaleFactor, int drawFlags, LightView *
break; break;
} }
} }
} else if(m_selected) {
g_painter->setColor(Color::darkGreen);
g_painter->setOpacity(0.9);
} }
if(m_selected)
g_painter->setColor(Color::teal);
if((thing->isGround() && drawFlags & Otc::DrawGround) || if((thing->isGround() && drawFlags & Otc::DrawGround) ||
(thing->isGroundBorder() && drawFlags & Otc::DrawGroundBorders) || (thing->isGroundBorder() && drawFlags & Otc::DrawGroundBorders) ||
@ -88,6 +87,8 @@ void Tile::draw(const Point& dest, float scaleFactor, int drawFlags, LightView *
g_painter->resetColor(); g_painter->resetColor();
} }
} }
if(m_selected)
g_painter->resetColor();
m_drawElevation += thing->getElevation(); m_drawElevation += thing->getElevation();
if(m_drawElevation > Otc::MAX_ELEVATION) if(m_drawElevation > Otc::MAX_ELEVATION)