skip over / when extracting the map name

This commit is contained in:
Bill Currie 2000-10-10 23:35:09 +00:00
parent f5b74e900c
commit 8a62bebaef

View file

@ -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();