1
0
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:
mateuszb
2008-01-13 19:42:21 +00:00
parent d55b020dbd
commit 0fc7d5b795
3 changed files with 77 additions and 3 deletions

View File

@@ -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