Skip to content

Commit

Permalink
fix compile warnings, fix tooltips fading in too slowly
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Nov 23, 2017
1 parent 4c3b4da commit 6cfaed0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/gui/elementsearch/ElementSearchActivity.cpp
Expand Up @@ -27,12 +27,13 @@ ElementSearchActivity::ElementSearchActivity(GameController * gameController, st
firstResult(NULL),
gameController(gameController),
tools(tools),
toolTip(""),
toolTipPresence(0),
shiftPressed(false),
ctrlPressed(false),
altPressed(false),
exit(false),
toolTip(""),
isToolTipFadingIn(false)
isToolTipFadingIn(false),
exit(false)
{
ui::Label * title = new ui::Label(ui::Point(4, 5), ui::Point(Size.X-8, 15), "Element Search");
title->SetTextColour(style::Colour::InformationTitle);
Expand Down Expand Up @@ -211,7 +212,7 @@ void ElementSearchActivity::OnTick(float dt)
if (toolTipPresence < 120)
toolTipPresence += int(dt*2)>1?int(dt*2):2;
}
if (toolTipPresence>0)
else if (toolTipPresence>0)
{
toolTipPresence -= int(dt)>0?int(dt):1;
if (toolTipPresence<0)
Expand Down

0 comments on commit 6cfaed0

Please sign in to comment.