From: havoc Date: Tue, 8 Apr 2003 08:11:45 +0000 (+0000) Subject: fix two more fs_gamedir mixups (loading saved games should now work, as well as video... X-Git-Tag: xonotic-v0.1.0preview~6670 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a9c3e6c6de167cb7c9b7f1d2a793318809b2b9d9;p=xonotic%2Fdarkplaces.git fix two more fs_gamedir mixups (loading saved games should now work, as well as video playback) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2935 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_video.c b/cl_video.c index a309b2e4..998f088f 100644 --- a/cl_video.c +++ b/cl_video.c @@ -193,7 +193,7 @@ static void CL_PlayVideo_f(void) return; } - sprintf(name, "%s/video/%s.dpv", fs_gamedir, Cmd_Argv(1)); + sprintf(name, "video/%s.dpv", Cmd_Argv(1)); CL_VideoStart(name); } diff --git a/host_cmd.c b/host_cmd.c index 4852da38..6b0cb342 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -486,7 +486,7 @@ void Host_Loadgame_f (void) return; } - sprintf (sv_loadgame, "%s/%s", fs_gamedir, Cmd_Argv(1)); + strcpy (sv_loadgame, Cmd_Argv(1)); FS_DefaultExtension (sv_loadgame, ".sav"); Con_Printf ("Loading game from %s...\n", sv_loadgame);