Fix up saving in multiplayer
By default allow only settings controllers to save the game. Use actual file names to help prevent possible save file overriding as savexx is unreliable online. Prevent quicksave behavior from working with the rotator. Force a unique netgame subfolder for multiplayer saves to remove the ability to override singleplayer saves. Send over the host's -loadgame argument to make loading easier (will not override the guest's -loadgame in case they need a special file name).
This commit is contained in:
parent
5ea8981472
commit
cf9a9097b9
7 changed files with 110 additions and 9 deletions
|
|
@ -713,7 +713,7 @@ UNSAFE_CCMD(save)
|
|||
Printf("saving to an absolute path is not allowed\n");
|
||||
return;
|
||||
}
|
||||
if (fname.IndexOf("..") > 0)
|
||||
if (fname.IndexOf("..") >= 0)
|
||||
{
|
||||
Printf("'..' not allowed in file names\n");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue