1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Little more work on pregame. Fixed some leaks.

Fixed: #80, #159, #234, #235, #319, #320, #430
This commit is contained in:
Michał W. Urbańczyk
2010-03-07 22:56:51 +00:00
parent ac7bc76b7b
commit 3699786ab0
8 changed files with 137 additions and 23 deletions

View File

@ -131,10 +131,12 @@ void AdventureMapButton::clickLeft(tribool down, bool previousState)
if (down)
{
CGI->soundh->playSound(soundBase::button);
state=1;
state = 1;
}
else if(hoverable && hovered)
state = 3;
else
state=0;
state = 0;
show(screenBuf);
if (actOnDown && down)