mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2024-11-10 07:12:01 +00:00
Fix server video loading
From h3xx: There is a bug whereby, on some systems, when a command such as "map *ntro.cin+base1" (as it is when starting Quake2 vanilla, defined in default.cfg) is issued, the server gives the error that it can't find "maps/ntro.inn.bsp" even though "video/ntro.cin" exists. After hacking at this problem for a couple hours, I finally fixed it in two lines; the problem lies in how the strings are used. I am unsure what caused this problem to surface in one of my machines and not the other (they both had exactly the same software), but this patch fixes the problem on the one that was having it, and doesn't affect the one that wasn't having it. Due to how I solved this problem, it would lead me to believe that this was a simple programming mistake.
This commit is contained in:
parent
2a9a9caf51
commit
bbd69756d0
1 changed files with 2 additions and 1 deletions
|
@ -476,6 +476,7 @@ void SV_GameMap_f(void){
|
|||
if(map[0] == '*'){
|
||||
// wipe all the *.sav files
|
||||
SV_WipeSavegame("current");
|
||||
++map;
|
||||
} else { // save the map just exited
|
||||
if(sv.state == ss_game){
|
||||
// clear all the client inuse flags before saving so that
|
||||
|
@ -497,7 +498,7 @@ void SV_GameMap_f(void){
|
|||
}
|
||||
|
||||
// start up the next map
|
||||
SV_Map(false, Cmd_Argv(1), false);
|
||||
SV_Map(false, map, false);
|
||||
|
||||
// archive server state
|
||||
strncpy(svs.mapcmd, Cmd_Argv(1), sizeof(svs.mapcmd) - 1);
|
||||
|
|
Loading…
Reference in a new issue