[iortcw] 391/497: All: Fix Cvar_Unset not notifying cvar_modifiedFlags

Simon McVittie smcv at debian.org
Fri Sep 8 10:37:34 UTC 2017


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

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 8dedeea93385139cb3c236f34c6f84fb310ee7e5
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Wed Sep 9 11:12:50 2015 -0400

    All: Fix Cvar_Unset not notifying cvar_modifiedFlags
---
 MP/code/qcommon/cvar.c | 3 +++
 SP/code/qcommon/cvar.c | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/MP/code/qcommon/cvar.c b/MP/code/qcommon/cvar.c
index b121da5..235a55c 100644
--- a/MP/code/qcommon/cvar.c
+++ b/MP/code/qcommon/cvar.c
@@ -1155,6 +1155,9 @@ cvar_t *Cvar_Unset(cvar_t *cv)
 {
 	cvar_t *next = cv->next;
 
+	// note what types of cvars have been modified (userinfo, archive, serverinfo, systeminfo)
+	cvar_modifiedFlags |= cv->flags;
+
 	if(cv->name)
 		Z_Free(cv->name);
 	if(cv->string)
diff --git a/SP/code/qcommon/cvar.c b/SP/code/qcommon/cvar.c
index c52a8e7..7aae44d 100644
--- a/SP/code/qcommon/cvar.c
+++ b/SP/code/qcommon/cvar.c
@@ -1116,6 +1116,9 @@ cvar_t *Cvar_Unset(cvar_t *cv)
 {
 	cvar_t *next = cv->next;
 
+	// note what types of cvars have been modified (userinfo, archive, serverinfo, systeminfo)
+	cvar_modifiedFlags |= cv->flags;
+
 	if(cv->name)
 		Z_Free(cv->name);
 	if(cv->string)

-- 
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