Make con_speed 0 instant.

Nice for recording, and should give more accurate timedemos.
This commit is contained in:
Bill Currie 2012-07-18 14:50:49 +09:00
parent d73b5045d8
commit 15484956f7

View file

@ -731,6 +731,7 @@ setup_console (void)
lines = 0;
}
if (con_speed->value) {
if (lines < con_data.lines) {
con_data.lines -= max (0.2, con_speed->value) * *con_data.frametime;
con_data.lines = max (con_data.lines, lines);
@ -738,6 +739,9 @@ setup_console (void)
con_data.lines += max (0.2, con_speed->value) * *con_data.frametime;
con_data.lines = min (con_data.lines, lines);
}
} else {
con_data.lines = lines;
}
if (con_data.lines >= r_data->vid->conheight - r_data->lineadj)
r_data->scr_copyeverything = 1;
}