mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
- fixed: The newly accelerated mousewheel scrolling code did not check for the end of the list and could scroll one item too far. It also incremented VisBottom by 3 instead of 2.
- changed lock failsound lookup so that for each sound it tries to resolve it as a player sound before deciding if it is valid. SVN r2830 (trunk)
This commit is contained in:
parent
c4c69df6dc
commit
e1de9f0633
2 changed files with 16 additions and 5 deletions
|
@ -451,8 +451,12 @@ bool P_CheckKeys (AActor *owner, int keynum, bool remote)
|
|||
{
|
||||
if (failsound[i] != 0)
|
||||
{
|
||||
S_Sound (owner, CHAN_VOICE, failsound[i], 1, ATTN_NORM);
|
||||
break;
|
||||
int snd = S_FindSkinnedSound(owner, failsound[i]);
|
||||
if (snd != 0)
|
||||
{
|
||||
S_Sound (owner, CHAN_VOICE, snd, 1, ATTN_NORM);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -146,9 +146,16 @@ bool DOptionMenu::Responder (event_t *ev)
|
|||
{
|
||||
if (CanScrollDown)
|
||||
{
|
||||
mDesc->mScrollPos += 2;
|
||||
VisBottom += 2;
|
||||
VisBottom++;
|
||||
if (VisBottom < (int)(mDesc->mItems.Size()-2))
|
||||
{
|
||||
mDesc->mScrollPos += 2;
|
||||
VisBottom += 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
mDesc->mScrollPos++;
|
||||
VisBottom++;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue