mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
another piece of hero window
This commit is contained in:
@@ -120,7 +120,7 @@ void CHeroList::clickLeft(tribool down)
|
||||
hx-=pos.x;
|
||||
hy-=pos.y; hy-=arrup->ourImages[0].bitmap->h;
|
||||
float ny = (float)hy/(float)32;
|
||||
if (ny>5 || ny<0)
|
||||
if (ny>=5 || ny<0)
|
||||
return;
|
||||
if (((int)(ny+from))==selected)
|
||||
LOCPLINT->openHeroWindow(items[selected].first);//print hero screen
|
||||
|
||||
Reference in New Issue
Block a user