mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 14:32:55 +00:00
Fix AAS_Reachability_Grapple's sky surface check
Surface flags are stored in bsptrace.surface.value not flags.
This commit is contained in:
parent
99b74fc5bf
commit
dbd6f6d8b1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue