Fixed new redundancy HUD messages check - made it more strictly

This commit is contained in:
zicodxx 2007-11-23 23:04:08 +00:00
parent 1639e0f1f5
commit fc60cd575d
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
D2X-Rebirth Changelog
20071124
--------
main/hud.c: Fixed new redundancy HUD messages check - made it more strictly
20071123
--------
main/aipath.c, main/fireball.c, main/titles.c: Fixed some memory problems; Adjusted timer_delay2 for robot briefings

View file

@ -261,8 +261,8 @@ 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) || !stricmp("super laser maxed out!",message)))
for (i=0; i<=HUD_MAX_NUM; i++)
if (last_message && !strcmp(&HUD_messages[i][0],message) && (!strnicmp("You already",message,11) || !stricmp("your laser is maxed out!",message) || !stricmp("super laser maxed out!",message)))
return 0;
t=time(NULL);