[iortcw] 76/152: All: Add missing conditional to exit when opening URL

Simon McVittie smcv at debian.org
Fri Sep 8 10:40:05 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.5a
in repository iortcw.

commit 0f7f0887056519e2f7f4f3afd5fdb4be7ddf74b6
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Sat Jul 2 19:46:06 2016 -0400

    All: Add missing conditional to exit when opening URL
---
 MP/code/sys/sys_unix.c | 6 +++++-
 SP/code/sys/sys_unix.c | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/MP/code/sys/sys_unix.c b/MP/code/sys/sys_unix.c
index 8558749..3922979 100644
--- a/MP/code/sys/sys_unix.c
+++ b/MP/code/sys/sys_unix.c
@@ -1039,7 +1039,11 @@ void Sys_OpenURL( const char *url, qboolean doexit ) {
 	// build the command line
 	Com_sprintf( cmdline, MAX_CMD, "%s '%s' &", fn, url );
 
-	Sys_StartProcess( cmdline, qfalse );
+	if ( doexit ) {
+		Sys_StartProcess( cmdline, qtrue );
+	} else {
+		Sys_StartProcess( cmdline, qfalse );
+	}
 
 }
 
diff --git a/SP/code/sys/sys_unix.c b/SP/code/sys/sys_unix.c
index 888f005..b6d66ea 100644
--- a/SP/code/sys/sys_unix.c
+++ b/SP/code/sys/sys_unix.c
@@ -1027,7 +1027,11 @@ void Sys_OpenURL( char *url, qboolean doexit ) {
 	// build the command line
 	Com_sprintf( cmdline, MAX_CMD, "%s '%s' &", fn, url );
 
-	Sys_StartProcess( cmdline, doexit );
+	if ( doexit ) {
+		Sys_StartProcess( cmdline, qtrue );
+	} else {
+		Sys_StartProcess( cmdline, qfalse );
+	}
 
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list