mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 14:41:42 +00:00
* Fix demo playback being broken, not entirely sure by what or when
This commit is contained in:
parent
04c5efd739
commit
3b63c54a24
1 changed files with 7 additions and 4 deletions
|
@ -929,7 +929,7 @@ void CL_PlayDemo_f( void ) {
|
|||
char retry[MAX_OSPATH];
|
||||
|
||||
if (Cmd_Argc() != 2) {
|
||||
Com_Printf ("playdemo <demoname>\n");
|
||||
Com_Printf ("demo <demoname>\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -937,14 +937,17 @@ void CL_PlayDemo_f( void ) {
|
|||
// 2 means don't force disconnect of local client
|
||||
Cvar_Set( "sv_killserver", "2" );
|
||||
|
||||
CL_Disconnect( qtrue );
|
||||
|
||||
// open the demo file
|
||||
arg = Cmd_Argv(1);
|
||||
|
||||
CL_Disconnect( qtrue );
|
||||
|
||||
// check for an extension .dm_?? (?? is protocol)
|
||||
ext_test = arg + strlen(arg) - 6;
|
||||
if ((strlen(arg) > 6) && (ext_test[0] == '.') && ((ext_test[1] == 'd') || (ext_test[1] == 'D')) && ((ext_test[2] == 'm') || (ext_test[2] == 'M')) && (ext_test[3] == '_'))
|
||||
if ((strlen(arg) > 6) && (ext_test[0] == '.') &&
|
||||
((ext_test[1] == 'd') || (ext_test[1] == 'D')) &&
|
||||
((ext_test[2] == 'm') || (ext_test[2] == 'M')) &&
|
||||
(ext_test[3] == '_'))
|
||||
{
|
||||
protocol = atoi(ext_test+4);
|
||||
i=0;
|
||||
|
|
Loading…
Reference in a new issue