mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-25 13:32:01 +00:00
skip over / when extracting the map name
This commit is contained in:
parent
f5b74e900c
commit
8a62bebaef
1 changed files with 1 additions and 0 deletions
|
@ -288,6 +288,7 @@ void Team_NewMap ()
|
||||||
t2 = strrchr(mapname, '.');
|
t2 = strrchr(mapname, '.');
|
||||||
if (!t1 || !t2)
|
if (!t1 || !t2)
|
||||||
Sys_Error("Can't find / or .!");
|
Sys_Error("Can't find / or .!");
|
||||||
|
t1++; // skip over /
|
||||||
t2[0] = '\0';
|
t2[0] = '\0';
|
||||||
|
|
||||||
locs_reset();
|
locs_reset();
|
||||||
|
|
Loading…
Reference in a new issue