fix console overflow
This commit is contained in:
@@ -465,12 +465,14 @@ namespace Game
|
||||
int maxOffset = Console.Lines.Length - 1;
|
||||
if (ScrollOffset > maxOffset)
|
||||
ScrollOffset = maxOffset;
|
||||
return true;
|
||||
}
|
||||
else if (key == KeyboardKeys.PageDown)
|
||||
{
|
||||
ScrollOffset -= GetHeightInLines() / 2;
|
||||
if (ScrollOffset < 0)
|
||||
ScrollOffset = 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
//else if (ctrlDown && key == KeyboardKeys.A)
|
||||
|
||||
Reference in New Issue
Block a user