Skip to content

Commit

Permalink
Remove check for cg_recordSPDemoName.string array address
Browse files Browse the repository at this point in the history
It will always be true.
  • Loading branch information
zturtleman committed Jun 28, 2015
1 parent da8a74d commit f0c4c18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/cgame/cg_servercmds.c
Expand Up @@ -480,7 +480,7 @@ static void CG_MapRestart( void ) {
#ifdef MISSIONPACK
if (cg_singlePlayerActive.integer) {
trap_Cvar_Set("ui_matchStartTime", va("%i", cg.time));
if (cg_recordSPDemo.integer && cg_recordSPDemoName.string && *cg_recordSPDemoName.string) {
if (cg_recordSPDemo.integer && *cg_recordSPDemoName.string) {
trap_SendConsoleCommand(va("set g_synchronousclients 1 ; record %s \n", cg_recordSPDemoName.string));
}
}
Expand Down

0 comments on commit f0c4c18

Please sign in to comment.