- Rename con_numnotify to con_notifylines.

Zandronum 1.1 added an option with the same purpose. Use it to avoid duplicates.
This commit is contained in:
Edoardo Prezioso 2016-11-12 11:08:33 +01:00
parent f123da9385
commit 104030697f
1 changed files with 5 additions and 5 deletions

View File

@ -404,9 +404,9 @@ private:
}; };
static FNotifyBuffer NotifyStrings; static FNotifyBuffer NotifyStrings;
CUSTOM_CVAR(Int, con_numnotify, NUMNOTIFIES, CVAR_GLOBALCONFIG | CVAR_ARCHIVE) CUSTOM_CVAR(Int, con_notifylines, NUMNOTIFIES, CVAR_GLOBALCONFIG | CVAR_ARCHIVE)
{ {
NotifyStrings.Shift(con_numnotify); NotifyStrings.Shift(self);
} }
@ -711,7 +711,7 @@ void FNotifyBuffer::AddString(int printlevel, FString source)
source.IsEmpty() || source.IsEmpty() ||
gamestate == GS_FULLCONSOLE || gamestate == GS_FULLCONSOLE ||
gamestate == GS_DEMOSCREEN || gamestate == GS_DEMOSCREEN ||
con_numnotify == 0) con_notifylines == 0)
return; return;
if (ConsoleDrawing) if (ConsoleDrawing)
@ -755,9 +755,9 @@ void FNotifyBuffer::AddString(int printlevel, FString source)
newline.PrintLevel = printlevel; newline.PrintLevel = printlevel;
if (AddType == NEWLINE || Text.Size() == 0) if (AddType == NEWLINE || Text.Size() == 0)
{ {
if (con_numnotify > 0) if (con_notifylines > 0)
{ {
Shift(con_numnotify - 1); Shift(con_notifylines - 1);
} }
Text.Push(newline); Text.Push(newline);
} }