block 'You already have'-messages in HudLog output
This commit is contained in:
parent
40e11ebe8c
commit
545680b27e
|
@ -3,6 +3,7 @@ D1X-Rebirth Changelog
|
||||||
20070219
|
20070219
|
||||||
--------
|
--------
|
||||||
main/network.c, main/network.h: fixed player restriction at robot-/coop-games - code cleanup
|
main/network.c, main/network.h: fixed player restriction at robot-/coop-games - code cleanup
|
||||||
|
main/hudlog.c: block "You already have"-messages in HudLog output
|
||||||
|
|
||||||
20070218
|
20070218
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -104,11 +104,12 @@ void hud_log_message(char * message){
|
||||||
}
|
}
|
||||||
--recurse_flag;
|
--recurse_flag;
|
||||||
|
|
||||||
|
if (strnicmp ("You already",message,11)) { // block those messages in hudlog output
|
||||||
time_t t;
|
time_t t;
|
||||||
struct tm *lt;
|
struct tm *lt;
|
||||||
t=time(NULL);
|
t=time(NULL);
|
||||||
lt=localtime(&t);
|
lt=localtime(&t);
|
||||||
//02/06/99 Matthew Mueller - added zero padding to hour
|
//02/06/99 Matthew Mueller - added zero padding to hour
|
||||||
printf("%02i:%02i:%02i ",lt->tm_hour,lt->tm_min,lt->tm_sec);
|
printf("%02i:%02i:%02i ",lt->tm_hour,lt->tm_min,lt->tm_sec);
|
||||||
if (fhudlog)
|
if (fhudlog)
|
||||||
fprintf(fhudlog,"%02i:%02i:%02i ",lt->tm_hour,lt->tm_min,lt->tm_sec);
|
fprintf(fhudlog,"%02i:%02i:%02i ",lt->tm_hour,lt->tm_min,lt->tm_sec);
|
||||||
|
@ -125,6 +126,7 @@ void hud_log_message(char * message){
|
||||||
message++;
|
message++;
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
}
|
||||||
if (fhudlog){
|
if (fhudlog){
|
||||||
fprintf(fhudlog,"\n");
|
fprintf(fhudlog,"\n");
|
||||||
//added 05/17/99 Matt Mueller - flush file to make sure it all gets out there
|
//added 05/17/99 Matt Mueller - flush file to make sure it all gets out there
|
||||||
|
|
Loading…
Reference in a new issue