1
0
Fork 0
forked from fte/fteqw

QCC_Include now uses the path to the current file as base for #include and

#includelist (this way one can share code between different qcs more easily).


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1242 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Andreas Kirsch 2005-08-21 17:14:15 +00:00
parent cd19c7ac80
commit 19df459786

View file

@ -8452,6 +8452,9 @@ pbool QCC_Include(char *filename)
else else
{ {
strcpy(fname, qccmsourcedir); strcpy(fname, qccmsourcedir);
strcpy(fname, strings + s_file );
StripFilename( fname );
strcat( fname, "/" );
strcat(fname, filename); strcat(fname, filename);
} }
QCC_LoadFile(fname, (void*)&newfile); QCC_LoadFile(fname, (void*)&newfile);