mirror of
https://github.com/alexbatalov/fallout1-ce.git
synced 2024-10-04 13:49:51 +00:00
Fix perk selection (#55)
This commit is contained in:
parent
406b69b0fc
commit
dd9ca29939
@ -5518,7 +5518,7 @@ static int InputPDLoop(int count, void (*refreshProc)())
|
||||
rc = 1;
|
||||
} else if (keyCode == 501) {
|
||||
mouseGetPositionInWindow(pwin, &mouse_xpos, &mouse_ypos);
|
||||
cline = (mouse_ypos - (PERK_WINDOW_Y + PERK_WINDOW_LIST_Y)) / v16;
|
||||
cline = (mouse_ypos - PERK_WINDOW_LIST_Y) / v16;
|
||||
if (cline >= 0) {
|
||||
if (count - 1 < cline)
|
||||
cline = count - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user