mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
added baseq3 as a possible alternative gamedir
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@436 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
b4c6345c34
commit
5f50922094
1 changed files with 10 additions and 7 deletions
|
@ -680,12 +680,6 @@ void MSG_WriteString (sizebuf_t *sb, char *s)
|
|||
SZ_Write (sb, s, Q_strlen(s)+1);
|
||||
}
|
||||
|
||||
typedef union {
|
||||
char b[4];
|
||||
short b2;
|
||||
int b4;
|
||||
float f;
|
||||
} coorddata;
|
||||
int sizeofcoord=2;
|
||||
float MSG_FromCoord(coorddata c, int bytes)
|
||||
{
|
||||
|
@ -4130,7 +4124,16 @@ void COM_InitFilesystem (void)
|
|||
COM_AddGameDirectory (va("%s/data1", com_basedir) );
|
||||
}
|
||||
else
|
||||
COM_AddGameDirectory (va("%s/id1", com_basedir) );
|
||||
{//quake3, we don't have full support for this, so...
|
||||
f = fopen(va("%s/baseq3/pak0.pk3", com_basedir), "rb");
|
||||
if (f)
|
||||
{
|
||||
fclose(f);
|
||||
COM_AddGameDirectory (va("%s/baseq3", com_basedir) );
|
||||
}
|
||||
else
|
||||
COM_AddGameDirectory (va("%s/id1", com_basedir) ); //ah well, id1 it is, they mustve unpacked it.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue