mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 00:30:57 +00:00
Limit the search for lit and ent files.
The search for these files will stop in the vpath that contains the .bsp file to which they belong. This will prevent problems with id1/maps/start.lit being used for shadows/maps/start.bsp.
This commit is contained in:
parent
8bea6a66ca
commit
ab3f554a0e
5 changed files with 18 additions and 5 deletions
|
@ -1102,9 +1102,11 @@ void
|
|||
SV_SpawnServer (const char *server)
|
||||
{
|
||||
byte *buf;
|
||||
QFile *ent_file;
|
||||
int i;
|
||||
edict_t *ent;
|
||||
|
||||
|
||||
S_BlockSound ();
|
||||
// let's not have any servers with no name
|
||||
if (hostname->string[0] == 0)
|
||||
|
@ -1211,7 +1213,9 @@ SV_SpawnServer (const char *server)
|
|||
*sv_globals.serverflags = svs.serverflags;
|
||||
|
||||
*sv_globals.time = sv.time;
|
||||
if ((buf = QFS_LoadFile (QFS_FOpenFile (va ("maps/%s.ent", server)), 0))) {
|
||||
ent_file = QFS_VOpenFile (va ("maps/%s.ent", server), 0,
|
||||
sv.worldmodel->vpath);
|
||||
if ((buf = QFS_LoadFile (ent_file, 0))) {
|
||||
ED_LoadFromFile (&sv_pr_state, (char *) buf);
|
||||
free (buf);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue