Difference for main/hudlog.c from version 1.3 to 1.4


version 1.3 version 1.4
Line 11
 
Line 11
 #include "multi.h"  #include "multi.h"
 #include "hudlog.h"  #include "hudlog.h"
   
   //added on 9/5/99 by Victor Rachels for \ or / usage
   #include "d_slash.h"
   //end this section addition -VR
   
 int HUD_log_messages = 0;  int HUD_log_messages = 0;
 FILE *fhudlog=NULL;  FILE *fhudlog=NULL;
 char hudlogdir[128]="";  char hudlogdir[128]="";
Line 19
 
Line 23
 void hud_log_setdir(char *dir){  void hud_log_setdir(char *dir){
  int l=strlen(dir);   int l=strlen(dir);
  strcpy(hudlogdir,dir);   strcpy(hudlogdir,dir);
  if (l && hudlogdir[l-1]!='/'){  //added/edited on 9/5/99 by Victor Rachels for \ or / usage
  hudlogdir[l++]='/';          if (l && hudlogdir[l-1]!=USEDSLASH){
                   hudlogdir[l++]=USEDSLASH;
   //end this section edit - VR
  hudlogdir[l]=0;   hudlogdir[l]=0;
  }   }
 }  }

Legend:
line(s) removed in v.1.3 
line(s) changed
 line(s) added in v.1.4