From 19df45978635cb1cc4c731eb896490457d423952 Mon Sep 17 00:00:00 2001 From: Andreas Kirsch Date: Sun, 21 Aug 2005 17:14:15 +0000 Subject: [PATCH] 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 --- engine/qclib/qcc_pr_comp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/qclib/qcc_pr_comp.c b/engine/qclib/qcc_pr_comp.c index 56c362408..29a938119 100644 --- a/engine/qclib/qcc_pr_comp.c +++ b/engine/qclib/qcc_pr_comp.c @@ -8452,6 +8452,9 @@ pbool QCC_Include(char *filename) else { strcpy(fname, qccmsourcedir); + strcpy(fname, strings + s_file ); + StripFilename( fname ); + strcat( fname, "/" ); strcat(fname, filename); } QCC_LoadFile(fname, (void*)&newfile);