1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-04 22:14:25 +02:00

Fixed your bug.

This commit is contained in:
Michał W. Urbańczyk 2008-01-28 12:36:46 +00:00
parent b1af2fb829
commit a30a6bc507

View File

@ -862,10 +862,11 @@ void LClickableAreaHero::clickLeft(boost::logic::tribool down)
void LRClickableAreaWTextComp::clickLeft(boost::logic::tribool down) void LRClickableAreaWTextComp::clickLeft(boost::logic::tribool down)
{ {
if(!down) if((!down) && pressedL)
{ {
LOCPLINT->showInfoDialog(text, std::vector<SComponent*>(1, new SComponent(SComponent::Etype(baseType), type, bonus))); LOCPLINT->showInfoDialog(text, std::vector<SComponent*>(1, new SComponent(SComponent::Etype(baseType), type, bonus)));
} }
ClickableL::clickLeft(down);
} }
void LRClickableAreaWTextComp::clickRight(boost::logic::tribool down) void LRClickableAreaWTextComp::clickRight(boost::logic::tribool down)
{ {