mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fix slot deselect when selected shortly after new day animation bypass
This commit is contained in:
parent
ea0ee87299
commit
013d4cd208
@ -277,6 +277,9 @@ void CInfoBar::tick(uint32_t msPassed)
|
|||||||
|
|
||||||
void CInfoBar::clickReleased(const Point & cursorPosition)
|
void CInfoBar::clickReleased(const Point & cursorPosition)
|
||||||
{
|
{
|
||||||
|
timerCounter = 0;
|
||||||
|
removeUsedEvents(TIME); //expiration trigger from just clicked element is not valid anymore
|
||||||
|
|
||||||
if(state == HERO || state == TOWN)
|
if(state == HERO || state == TOWN)
|
||||||
{
|
{
|
||||||
if(settings["gameTweaks"]["infoBoxCreatureManagement"].Bool())
|
if(settings["gameTweaks"]["infoBoxCreatureManagement"].Bool())
|
||||||
|
Loading…
Reference in New Issue
Block a user