Fix not being able to turn off FIND tool when a life element is selected
This commit is contained in:
parent
e68dd74b68
commit
111468c672
@ -1458,7 +1458,7 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
|
|||||||
if (ctrl)
|
if (ctrl)
|
||||||
{
|
{
|
||||||
Tool *active = c->GetActiveTool(0);
|
Tool *active = c->GetActiveTool(0);
|
||||||
if (active->GetIdentifier().find("_PT_") == active->GetIdentifier().npos || ren->findingElement == active->GetToolID())
|
if (active->GetIdentifier().find("_PT_") == active->GetIdentifier().npos || ren->findingElement == active->GetToolID()%256)
|
||||||
ren->findingElement = 0;
|
ren->findingElement = 0;
|
||||||
else
|
else
|
||||||
ren->findingElement = active->GetToolID()%256;
|
ren->findingElement = active->GetToolID()%256;
|
||||||
|
Reference in New Issue
Block a user