mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
Try mvd before qwd when no extension is given.
This commit is contained in:
parent
93e35d7ec0
commit
2dfa871794
1 changed files with 8 additions and 2 deletions
|
@ -958,10 +958,15 @@ CL_StartDemo (void)
|
|||
|
||||
// open the demo file
|
||||
name = dstring_strdup (demoname);
|
||||
QFS_DefaultExtension (name, ".qwd");
|
||||
|
||||
Sys_Printf ("Playing demo from %s.\n", name->str);
|
||||
QFS_DefaultExtension (name, ".mvd");
|
||||
QFS_FOpenFile (name->str, &cls.demofile);
|
||||
if (!cls.demofile) {
|
||||
dstring_copystr (name, demoname);
|
||||
QFS_DefaultExtension (name, ".qwd");
|
||||
QFS_FOpenFile (name->str, &cls.demofile);
|
||||
}
|
||||
|
||||
if (!cls.demofile) {
|
||||
Sys_Printf ("ERROR: couldn't open.\n");
|
||||
cls.demonum = -1; // stop demo loop
|
||||
|
@ -976,6 +981,7 @@ CL_StartDemo (void)
|
|||
cls.demofile = 0;
|
||||
return;
|
||||
}
|
||||
Sys_Printf ("Playing demo from %s.\n", name->str);
|
||||
|
||||
cls.demoplayback = true;
|
||||
key_game_target = IMT_DEMO;
|
||||
|
|
Loading…
Reference in a new issue