[ioquake3] 114/136: Fix (unused) check for map restart in CG_TransitionSnapshot

Simon McVittie smcv at debian.org
Thu Jun 15 09:09:16 UTC 2017


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

smcv pushed a commit to branch debian/master
in repository ioquake3.

commit c96acec4286625f3cdf6a28b6341802139aa4144
Author: Zack Middleton <zack at cloemail.com>
Date:   Wed Jun 7 19:42:17 2017 -0500

    Fix (unused) check for map restart in CG_TransitionSnapshot
---
 code/cgame/cg_snapshot.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/code/cgame/cg_snapshot.c b/code/cgame/cg_snapshot.c
index 4ad77d6..3a70559 100644
--- a/code/cgame/cg_snapshot.c
+++ b/code/cgame/cg_snapshot.c
@@ -138,8 +138,7 @@ static void CG_TransitionSnapshot( void ) {
 	CG_ExecuteNewServerCommands( cg.nextSnap->serverCommandSequence );
 
 	// if we had a map_restart, set everthing with initial
-	if ( !cg.snap ) {
-		return;
+	if ( cg.mapRestart ) {
 	}
 
 	// clear the currentValid flag for all entities in the existing snapshot

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



More information about the Pkg-games-commits mailing list