mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
fix in map loading code, quake can now load dm6++
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2762 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
4761de632a
commit
f34c09bc37
1 changed files with 9 additions and 5 deletions
|
@ -444,11 +444,15 @@ void SV_Map_f (void)
|
||||||
waschangelevel = !strcmp(Cmd_Argv(0), "changelevel");
|
waschangelevel = !strcmp(Cmd_Argv(0), "changelevel");
|
||||||
wasspmap = !strcmp(Cmd_Argv(0), "spmap");
|
wasspmap = !strcmp(Cmd_Argv(0), "spmap");
|
||||||
|
|
||||||
nextserver = strchr(level, '+');
|
snprintf (expanded, sizeof(expanded), "maps/%s.bsp", level); // this function and the if statement below, is a quake bugfix which stopped a map called "dm6++.bsp" from loading because of the + sign, quake2 map syntax interprets + character as "intro.cin+base1.bsp", to play a cinematic then load a map after
|
||||||
if (nextserver)
|
if (!COM_FCheckExists (expanded))
|
||||||
{
|
{
|
||||||
*nextserver = '\0';
|
nextserver = strchr(level, '+');
|
||||||
nextserver++;
|
if (nextserver)
|
||||||
|
{
|
||||||
|
*nextserver = '\0';
|
||||||
|
nextserver++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (startspot)
|
if (startspot)
|
||||||
|
|
Loading…
Reference in a new issue