From dbd6f6d8b1bd923fc1e38100d548a80f83535ce3 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Wed, 18 Feb 2015 13:39:42 -0600 Subject: [PATCH] Fix AAS_Reachability_Grapple's sky surface check Surface flags are stored in bsptrace.surface.value not flags. --- code/botlib/be_aas_reach.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/botlib/be_aas_reach.c b/code/botlib/be_aas_reach.c index 379948aa..5452ea4c 100644 --- a/code/botlib/be_aas_reach.c +++ b/code/botlib/be_aas_reach.c @@ -3857,7 +3857,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)) continue; + if ((bsptrace.surface.value & SURF_SKY) || (bsptrace.fraction * 500 > 32)) continue; //trace a full bounding box from the area center on the ground to //the center of the face VectorSubtract(facecenter, areastart, dir);