[iortcw] 302/497: All: Fix AAS_Reachability_Grapple's sky surface check

Simon McVittie smcv at debian.org
Fri Sep 8 10:37:12 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 747497fcf0a1f5f875146f620fe944b29331b1db
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Wed Feb 18 20:29:18 2015 +0000

    All: Fix AAS_Reachability_Grapple's sky surface check
---
 MP/code/botlib/be_aas_reach.c | 2 +-
 SP/code/botlib/be_aas_reach.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/MP/code/botlib/be_aas_reach.c b/MP/code/botlib/be_aas_reach.c
index 0f209c5..d3731a7 100644
--- a/MP/code/botlib/be_aas_reach.c
+++ b/MP/code/botlib/be_aas_reach.c
@@ -3756,7 +3756,7 @@ int AAS_Reachability_Grapple( int area1num, int area2num ) {
 		//
 		bsptrace = AAS_Trace( start, NULL, NULL, end, 0, CONTENTS_SOLID );
 		//the grapple won't stick to the sky and the grapple point should be near the AAS wall
-		if ( ( bsptrace.surface.flags & SURF_SKY ) || ( bsptrace.fraction * 500 > 32 ) ) {
+		if ( ( bsptrace.surface.value & SURF_SKY ) || ( bsptrace.fraction * 500 > 32 ) ) {
 			continue;
 		}
 		//trace a full bounding box from the area center on the ground to
diff --git a/SP/code/botlib/be_aas_reach.c b/SP/code/botlib/be_aas_reach.c
index 00dab5b..8bbf131 100644
--- a/SP/code/botlib/be_aas_reach.c
+++ b/SP/code/botlib/be_aas_reach.c
@@ -3761,7 +3761,7 @@ int AAS_Reachability_Grapple( int area1num, int area2num ) {
 		//
 		bsptrace = AAS_Trace( start, NULL, NULL, end, 0, CONTENTS_SOLID );
 		//the grapple won't stick to the sky and the grapple point should be near the AAS wall
-		if ( ( bsptrace.surface.flags & SURF_SKY ) || ( bsptrace.fraction * 500 > 32 ) ) {
+		if ( ( bsptrace.surface.value & SURF_SKY ) || ( bsptrace.fraction * 500 > 32 ) ) {
 			continue;
 		}
 		//trace a full bounding box from the area center on the ground to

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