version 1.3 | | version 1.4 |
---|
| | |
#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]=""; |
| | |
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; |
} | | } |
} | | } |