lines.pop_back();
// increase console height if necessary
- if (height < 64) {
+ if ((stayOpen > 0) && (height < 64)) {
if(height < 4)
height = 4;
height += fontheight * line_count;
// reset console to full opacity
alpha = 1.0;
-
- // increase time that console stays open
- if(stayOpen < 6)
- stayOpen += 1.5;
}
void
}
void
+Console::open()
+{
+ if(stayOpen < 2)
+ stayOpen += 1.5;
+}
+
+void
Console::hide()
{
focused = false;