mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[console] Ensure console lines doesn't exceed view
This fixes a segfault in 32-bit nq-win caused by negative frame times (due to something going weird with Sys_DoubleTime).
This commit is contained in:
parent
4c90c3c4bb
commit
296c04c8eb
1 changed files with 3 additions and 0 deletions
|
@ -673,6 +673,9 @@ setup_console (void)
|
|||
} else {
|
||||
con_data.lines = lines;
|
||||
}
|
||||
if (con_data.lines > r_data->vid->conview->ylen) {
|
||||
con_data.lines = r_data->vid->conview->ylen;
|
||||
}
|
||||
if (con_data.lines >= r_data->vid->conview->ylen - r_data->lineadj)
|
||||
r_data->scr_copyeverything = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue