you can now visit caredbar!

This commit is contained in:
Ondřej Novák 2025-01-28 21:46:19 +01:00
parent bf59962724
commit 3b903e2b52
55 changed files with 953 additions and 1428 deletions

View file

@ -1318,14 +1318,14 @@ void check_global_fletna(THE_TIMER *t)
//---------------------------------------
char *find_map_path(char *filename)
char *find_map_path(const char *filename)
{
char *p1,*p;
if (pathtable[SR_MAP2]!=NULL)
{
concat(p1,pathtable[SR_MAP2],filename);
if (!access(p1,0)) goto found;
if (check_file_exists(p1)) goto found;
}
concat(p1,pathtable[SR_MAP],filename);
found:
@ -1353,7 +1353,7 @@ TMPFILE_RD *enc_open(char *filename)
int size;
char *encdata;
f=fopen(filename,"r");
f=fopen_icase(filename,"r");
if (f!=NULL) {
encdata = load_file_to_string(f, &size);
fclose(f);
@ -1364,7 +1364,7 @@ TMPFILE_RD *enc_open(char *filename)
c=strrchr(enc,'.');
if (c==NULL) c=strchr(enc,0);
strcpy(c,".ENC");
f=fopen(enc,"rb");
f=fopen_icase(enc,"rb");
if (f==NULL) return NULL;
encdata = load_file_to_string(f, &size);
fclose(f);