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:
zicodxx 2007-10-28 21:37:08 +00:00
parent 6e3a0310d7
commit 4f2d23bb95

View file

@ -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);