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

smcv pushed a commit to tag 1.51b
in repository iortcw.

commit 4aee17a833e479cbed5a846cddc85bef96a2b5dc
Author: MAN-AT-ARMS <m4n4t4...@gmail.com>
Date:   Mon Jun 12 18:21:49 2017 -0400

    All: Fix (unused) check for map restart in CG_TransitionSnapshot
---
 MP/code/cgame/cg_snapshot.c | 6 ++----
 SP/code/cgame/cg_snapshot.c | 6 ++----
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/MP/code/cgame/cg_snapshot.c b/MP/code/cgame/cg_snapshot.c
index d2db1b7..27dcac8 100644
--- a/MP/code/cgame/cg_snapshot.c
+++ b/MP/code/cgame/cg_snapshot.c
@@ -206,10 +206,8 @@ static void CG_TransitionSnapshot( void ) {
        // execute any server string commands before transitioning entities
        CG_ExecuteNewServerCommands( cg.nextSnap->serverCommandSequence );
 
-       // if we had a map_restart, set everthing with initial
-
-       if ( !( cg.snap ) || !( cg.nextSnap ) ) {
-               return;
+       // if we had a map_restart, set everything with initial
+       if ( cg.mapRestart ) {
        }
 
        // clear the currentValid flag for all entities in the existing snapshot
diff --git a/SP/code/cgame/cg_snapshot.c b/SP/code/cgame/cg_snapshot.c
index 2716934..cff03b8 100644
--- a/SP/code/cgame/cg_snapshot.c
+++ b/SP/code/cgame/cg_snapshot.c
@@ -221,10 +221,8 @@ static void CG_TransitionSnapshot( void ) {
        // execute any server string commands before transitioning entities
        CG_ExecuteNewServerCommands( cg.nextSnap->serverCommandSequence );
 
-       // if we had a map_restart, set everthing with initial
-
-       if ( !( cg.snap ) || !( cg.nextSnap ) ) {
-               return;
+       // if we had a map_restart, set everything with initial
+       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/iortcw.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to