X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=host_cmd.c;h=99f48c30ac8cdb4860fd2353e85c3261b0d6054a;hp=706d24d07d8d9a27a2d86e72827b6dd3e32c2505;hb=a90f136d4d2d9e21a27ed3dd3fae94a25101574a;hpb=70f8f430692a84c60db375396a04e88f10046cb2 diff --git a/host_cmd.c b/host_cmd.c index 706d24d0..99f48c30 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -561,6 +561,13 @@ void Host_Loadgame_f (void) Con_Printf("Loading game from %s...\n", filename); + // stop playing demos + if (cls.demoplayback) + CL_Disconnect (); + + // remove menu + key_dest = key_game; + cls.demonum = -1; // stop demo loop in case this fails t = text = (char *)FS_LoadFile (filename, tempmempool, false, NULL);