Skip to content

Commit

Permalink
Tweaked color blending for tile highlights while the connectedness ov…
Browse files Browse the repository at this point in the history
…erlay is active.
  • Loading branch information
ldicker83 committed Jan 29, 2019
1 parent f979487 commit c9ca5bd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Map/TileMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,14 @@ void TileMap::draw()
{
if (row == mMapHighlight.y() && col == mMapHighlight.x())
{
r.drawSubImage(mTileset, x, y, tile->index() * TILE_WIDTH, tsetOffset, TILE_WIDTH, TILE_HEIGHT, 125, 200, 255, 255);
if (mShowConnections && tile->connected())
{
r.drawSubImage(mTileset, x, y, tile->index() * TILE_WIDTH, tsetOffset, TILE_WIDTH, TILE_HEIGHT, 71, 224, 146, 255);
}
else
{
r.drawSubImage(mTileset, x, y, tile->index() * TILE_WIDTH, tsetOffset, TILE_WIDTH, TILE_HEIGHT, 125, 200, 255, 255);
}
}
else
{
Expand Down

0 comments on commit c9ca5bd

Please sign in to comment.