1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Allow opening single hero when two heroes in town via shift+click

This commit is contained in:
Dydzio 2024-07-15 20:22:19 +02:00
parent 006fadb82c
commit 037ee4395e

View File

@ -428,7 +428,7 @@ void CHeroGSlot::clickPressed(const Point & cursorPosition)
{
setHighlight(false);
if(other->hero)
if(other->hero && !GH.isKeyboardShiftDown())
LOCPLINT->showHeroExchange(hero->id, other->hero->id);
else
LOCPLINT->openHeroWindow(hero);