diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 9be446499..0258fd568 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 diff --git a/main/hud.c b/main/hud.c index 7ce9afbb2..8b571370d 100644 --- a/main/hud.c +++ b/main/hud.c @@ -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);