File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -600,6 +600,7 @@ Draws the last few lines of output transparently over the game top
600
600
void Con_DrawNotify (void )
601
601
{
602
602
int x, v;
603
+ int lineLimit = con.linewidth ;
603
604
conChar_t *text;
604
605
int i;
605
606
int time;
@@ -631,8 +632,11 @@ void Con_DrawNotify (void)
631
632
if (time > con_notifytime->value *1000 )
632
633
continue ;
633
634
text = con.text + (i % con.totallines )*con.rowwidth ;
634
- if (!con_timestamps->integer )
635
+ if (con_timestamps->integer == 0 || con_timestamps->integer == 2 ) {
636
+ // don't show timestamps in the notify lines
635
637
text += CON_TIMESTAMP_LEN;
638
+ lineLimit -= CON_TIMESTAMP_LEN;
639
+ }
636
640
637
641
// asian language needs to use the new font system to print glyphs...
638
642
//
@@ -644,7 +648,7 @@ void Con_DrawNotify (void)
644
648
//
645
649
char sTemp [4096 ]; // ott
646
650
sTemp [0 ] = ' \0 ' ;
647
- for (x = 0 ; x < con. linewidth ; x++)
651
+ for (x = 0 ; x < lineLimit ; x++)
648
652
{
649
653
if ( text[x].f .color != currentColor ) {
650
654
currentColor = text[x].f .color ;
@@ -662,7 +666,7 @@ void Con_DrawNotify (void)
662
666
}
663
667
else
664
668
{
665
- for (x = 0 ; x < con. linewidth ; x++) {
669
+ for (x = 0 ; x < lineLimit ; x++) {
666
670
if ( text[x].f .character == ' ' ) {
667
671
continue ;
668
672
}
Original file line number Diff line number Diff line change @@ -722,6 +722,7 @@ Draws the last few lines of output transparently over the game top
722
722
void Con_DrawNotify (void )
723
723
{
724
724
int x, v;
725
+ int lineLimit = con.linewidth ;
725
726
conChar_t *text;
726
727
int i;
727
728
int time;
@@ -755,8 +756,11 @@ void Con_DrawNotify (void)
755
756
if (time > con_notifytime->value *1000 )
756
757
continue ;
757
758
text = con.text + (i % con.totallines )*con.rowwidth ;
758
- if (!con_timestamps->integer )
759
+ if (con_timestamps->integer == 0 || con_timestamps->integer == 2 ) {
760
+ // don't show timestamps in the notify lines
759
761
text += CON_TIMESTAMP_LEN;
762
+ lineLimit -= CON_TIMESTAMP_LEN;
763
+ }
760
764
761
765
if (cl.snap .ps .pm_type != PM_INTERMISSION && Key_GetCatcher ( ) & (KEYCATCH_UI | KEYCATCH_CGAME) ) {
762
766
continue ;
@@ -778,7 +782,7 @@ void Con_DrawNotify (void)
778
782
//
779
783
char sTemp [4096 ]; // ott
780
784
sTemp [0 ] = ' \0 ' ;
781
- for (x = 0 ; x < con. linewidth ; x++)
785
+ for (x = 0 ; x < lineLimit ; x++)
782
786
{
783
787
if ( text[x].f .color != currentColor ) {
784
788
currentColor = text[x].f .color ;
@@ -796,7 +800,7 @@ void Con_DrawNotify (void)
796
800
}
797
801
else
798
802
{
799
- for (x = 0 ; x < con. linewidth ; x++) {
803
+ for (x = 0 ; x < lineLimit ; x++) {
800
804
if ( text[x].f .character == ' ' ) {
801
805
continue ;
802
806
}
You can’t perform that action at this time.
0 commit comments