Difference for main/hudlog.c from version 1.1 to 1.2


version 1.1 version 1.2
Line 72
 
Line 72
  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
  if (HUD_log_messages)   if (HUD_log_messages)
       printf("%02i:%02i:%02i %s\n",lt->tm_hour,lt->tm_min,lt->tm_sec,message);        printf("%02i:%02i:%02i ",lt->tm_hour,lt->tm_min,lt->tm_sec);
    if (fhudlog)
    fprintf(fhudlog,"%02i:%02i:%02i ",lt->tm_hour,lt->tm_min,lt->tm_sec);
    while (*message){
    if (*message==0x01){//filter out color codes
    message++;
    if (!*message)break;
    }else if (*message==0x02){//filter out color reset code
    }else{
    if (HUD_log_messages)
    printf("%c",*message);
    if (fhudlog)
    fprintf(fhudlog,"%c",*message);
    }
    message++;
    }
    if (HUD_log_messages)
    printf("\n");
  if (fhudlog){   if (fhudlog){
  fprintf(fhudlog,"%02i:%02i:%02i %s\n",lt->tm_hour,lt->tm_min,lt->tm_sec,message);   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
  fflush(fhudlog);   fflush(fhudlog);
  //end addition -MM   //end addition -MM

Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2