Potentially fix some missing notification strings.
This commit is contained in:
parent
e5cb2700f0
commit
b33e85c1ef
2 changed files with 10 additions and 7 deletions
|
|
@ -874,18 +874,21 @@ Class SWWMStatusBar : BaseStatusBar
|
|||
{
|
||||
// ignore outside of levels
|
||||
if ( gamestate != GS_LEVEL ) return false;
|
||||
int rprintlevel = printlevel&PRINT_TYPES;
|
||||
// treat any unrecognized levels as critical messages
|
||||
// note that checking for PRINT_LOG isn't needed as those are skipped early in the C++ side
|
||||
if ( (rprintlevel < PRINT_LOW) || (rprintlevel > PRINT_TEAMCHAT) ) rprintlevel = PRINT_HIGH;
|
||||
// strip trailing newline (all Printf type messages have this)
|
||||
outline.DeleteLastCharacter();
|
||||
// append chat messages to full history
|
||||
if ( (printlevel == PRINT_CHAT) || (printlevel == PRINT_TEAMCHAT) )
|
||||
EventHandler.SendNetworkEvent("swwmstoremessage."..outline,level.totaltime,printlevel,consoleplayer);
|
||||
if ( (printlevel < PRINT_LOW) || (printlevel > PRINT_TEAMCHAT) ) return true; // we couldn't care less about these
|
||||
if ( (rprintlevel == PRINT_CHAT) || (rprintlevel == PRINT_TEAMCHAT) )
|
||||
EventHandler.SendNetworkEvent("swwmstoremessage."..outline,level.totaltime,rprintlevel,consoleplayer);
|
||||
let m = new("MsgLine");
|
||||
m.str = outline;
|
||||
m.type = printlevel;
|
||||
m.type = rprintlevel;
|
||||
m.tic = level.totaltime;
|
||||
m.rep = 1;
|
||||
if ( printlevel == PRINT_LOW )
|
||||
if ( rprintlevel == PRINT_LOW )
|
||||
{
|
||||
// check if repeated
|
||||
for ( int i=0; i<PickupQueue.Size(); i++ )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue