- fixed: With hud_messages == 1 no messages were printed.

This commit is contained in:
Christoph Oelckers 2020-07-26 10:31:12 +02:00
parent 8643459cbe
commit 342b90c8f9
2 changed files with 3 additions and 1 deletions

View file

@ -780,7 +780,7 @@ void FNotifyBuffer::AddString(int printlevel, FString source)
TArray<FBrokenLines> lines;
int width;
if (hud_messages != 2 ||
if (hud_messages == 0 ||
source.IsEmpty() ||
gamestate == GS_FULLCONSOLE ||
gamestate == GS_DEMOSCREEN ||

View file

@ -153,11 +153,13 @@ void FTA(int q, struct player_struct* p)
auto qu = quoteMgr.GetQuote(q);
if (p == &ps[screenpeek] && qu[0] != '\0')
{
#if 0
if (q >= 70 && q <= 72 && hud_messages == 2)
{
// Todo: redirect this to a centered message (these are "need a key" messages)
}
else
#endif
{
int printlevel = hud_messages == 1 ? PRINT_MEDIUM : PRINT_MEDIUM | PRINT_NOTIFY;
Printf(printlevel, "%s\n", qu);