1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-07 00:58:39 +02:00

- fixed (partially) #1028

- fix to last commit
This commit is contained in:
Ivan Savenko
2012-07-07 14:10:47 +00:00
parent 55c78e9f16
commit 846474af66
2 changed files with 5 additions and 1 deletions

View File

@ -371,10 +371,12 @@ void CAdventureMapButton::init(const CFunctionList<void()> &Callback, const std:
callback = Callback;
hoverable = actOnDown = borderEnabled = soundDisabled = false;
borderColor.unused = 1; // represents a transparent color, used for HighlightableButton
assignedKeys.insert(key);
hoverTexts = Name;
helpBox=HelpBox;
if (key != SDLK_UNKNOWN)
assignedKeys.insert(key);
pos.x += x;
pos.y += y;