Fix bug in selecting with keyboard.
This commit is contained in:
1 parent
217bbaded0
commit
f11be295f7
1 file changed
+7
@@ -262,9 +262,13 @@ namespace Vocaluxe.Menu
|
||||
{
|
||||
case Keys.Right:
|
||||
if (_actualSelection + 1 < _Tiles.Count)
|
||||
{
|
||||
if (_Tiles[_actualSelection + 1].PlayerNr != -1)
|
||||
{
|
||||
_actualSelection++;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
int offset = _Offset;
|
||||
@@ -302,9 +306,12 @@ namespace Vocaluxe.Menu
|
||||
|
||||
case Keys.Down:
|
||||
if (_actualSelection + _NumW < _Tiles.Count-1)
|
||||
{
|
||||
if (_Tiles[_actualSelection + _NumW].PlayerNr != -1)
|
||||
{
|
||||
_actualSelection += _NumW;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
int offset = _Offset;
|
||||
|
||||
Reference in new issue
Block a user