moved hudlog printf's so they do not spam stdout with redundant messages
This commit is contained in:
parent
3431db5ab0
commit
cfcd1e39f9
|
@ -1,5 +1,9 @@
|
|||
D2X-Rebirth Changelog
|
||||
|
||||
20070114
|
||||
--------
|
||||
main/hud.c: moved hudlog printf's so they do not spam stdout with redundant messages
|
||||
|
||||
20070113
|
||||
--------
|
||||
main/object.c: removing the !dead statement (leftover from WraithX Deathcam) from object_move_one() so the function will return correctly if player dies instead running further and creating invalid code and crashes
|
||||
|
|
26
main/hud.c
26
main/hud.c
|
@ -273,19 +273,6 @@ int HUD_init_message_va(char * format, va_list args)
|
|||
message = &HUD_messages[hud_last][0];
|
||||
vsprintf(message,format,args);
|
||||
|
||||
t=time(NULL);
|
||||
lt=localtime(&t);
|
||||
|
||||
/* Produce a colorised version and send it to the console */
|
||||
printf("%02i:%02i:%02i ",lt->tm_hour,lt->tm_min,lt->tm_sec);
|
||||
if (HUD_color == -1)
|
||||
HUD_color = BM_XRGB(0,28,0);
|
||||
con_message[0] = CC_COLOR;
|
||||
con_message[1] = HUD_color;
|
||||
con_message[2] = '\0';
|
||||
strcat(con_message, message);
|
||||
con_printf(CON_NORMAL, "%s\n", con_message);
|
||||
|
||||
// Added by Leighton
|
||||
|
||||
if ((Game_mode & GM_MULTI) && FindArg("-noredundancy"))
|
||||
|
@ -315,6 +302,19 @@ int HUD_init_message_va(char * format, va_list args)
|
|||
return 0; // ignore since it is the same as the last one
|
||||
}
|
||||
|
||||
t=time(NULL);
|
||||
lt=localtime(&t);
|
||||
|
||||
/* Produce a colorised version and send it to the console */
|
||||
printf("%02i:%02i:%02i ",lt->tm_hour,lt->tm_min,lt->tm_sec);
|
||||
if (HUD_color == -1)
|
||||
HUD_color = BM_XRGB(0,28,0);
|
||||
con_message[0] = CC_COLOR;
|
||||
con_message[1] = HUD_color;
|
||||
con_message[2] = '\0';
|
||||
strcat(con_message, message);
|
||||
con_printf(CON_NORMAL, "%s\n", con_message);
|
||||
|
||||
hud_last = temp;
|
||||
// Check if memory has been overwritten at this point.
|
||||
if (strlen(message) >= HUD_MESSAGE_LENGTH)
|
||||
|
|
Loading…
Reference in a new issue