For HUD messages redundancy check, compare all messages and check if message already printed and is a typical 'ALREADY HAVE' message - waste them if so
This commit is contained in:
parent
6e3a0310d7
commit
4f2d23bb95
|
@ -235,7 +235,7 @@ int HUD_init_message_va(char * format, va_list args)
|
|||
// if many redundant messages at the same time, just block them all together
|
||||
// we probably want at least all visible once, but this isn't worth the work
|
||||
for (i=0; i<=HUD_nmessages; i++)
|
||||
if (last_message && !strcmp(&HUD_messages[i][0],message) && !strnicmp("You already",message,11))
|
||||
if (last_message && !strcmp(&HUD_messages[i][0],message) && (!strnicmp("You already",message,11) || !stricmp("your laser is maxed out!",message)))
|
||||
return 0;
|
||||
|
||||
t=time(NULL);
|
||||
|
|
Loading…
Reference in a new issue