fix console overflow

This commit is contained in:
2024-01-19 15:20:40 +02:00
parent 375ba9bed0
commit 22391dd2bd

View File

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