mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-14 22:20:58 +00:00
* Fix a bug where q3cpp's include paths were not set correctly
This commit is contained in:
parent
363c0d4eba
commit
9f427d8852
1 changed files with 7 additions and 2 deletions
|
@ -10,11 +10,16 @@ extern char *objname;
|
||||||
void appendDirToIncludeList( char *dir )
|
void appendDirToIncludeList( char *dir )
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
char *fqdir;
|
||||||
|
|
||||||
|
fqdir = (char *)newstring( (uchar *)includelist[NINCLUDE-1].file, 256, 0 );
|
||||||
|
strcat( fqdir, "/" );
|
||||||
|
strcat( fqdir, dir );
|
||||||
|
|
||||||
//avoid adding it more than once
|
//avoid adding it more than once
|
||||||
for (i=NINCLUDE-2; i>=0; i--) {
|
for (i=NINCLUDE-2; i>=0; i--) {
|
||||||
if (includelist[i].file &&
|
if (includelist[i].file &&
|
||||||
!strcmp (includelist[i].file, dir)) {
|
!strcmp (includelist[i].file, fqdir)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,7 +27,7 @@ void appendDirToIncludeList( char *dir )
|
||||||
for (i=NINCLUDE-2; i>=0; i--) {
|
for (i=NINCLUDE-2; i>=0; i--) {
|
||||||
if (includelist[i].file==NULL) {
|
if (includelist[i].file==NULL) {
|
||||||
includelist[i].always = 1;
|
includelist[i].always = 1;
|
||||||
includelist[i].file = dir;
|
includelist[i].file = fqdir;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue