diff options
author | Simon Howard | 2010-02-05 23:08:12 +0000 |
---|---|---|
committer | Simon Howard | 2010-02-05 23:08:12 +0000 |
commit | 677729c658b39f075e563fbc9f5a898641f7de54 (patch) | |
tree | 109bae4ac22fbc6f8a34ba34a4e9fc6a33e75c48 /src/doom/p_sight.c | |
parent | 8a77b34e936a3fd752db3bc1113e3d7bd0555440 (diff) | |
parent | b4f2d75b34b6e2b9bbb2fa6449125d3446a93a73 (diff) | |
download | chocolate-doom-677729c658b39f075e563fbc9f5a898641f7de54.tar.gz chocolate-doom-677729c658b39f075e563fbc9f5a898641f7de54.tar.bz2 chocolate-doom-677729c658b39f075e563fbc9f5a898641f7de54.zip |
Merge from trunk.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1845
Diffstat (limited to 'src/doom/p_sight.c')
-rw-r--r-- | src/doom/p_sight.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/doom/p_sight.c b/src/doom/p_sight.c index e192567b..79c1bb1d 100644 --- a/src/doom/p_sight.c +++ b/src/doom/p_sight.c @@ -173,7 +173,7 @@ boolean P_CrossSubsector (int num) continue; line->validcount = validcount; - + v1 = line->v1; v2 = line->v2; s1 = P_DivlineSide (v1->x,v1->y, &strace); @@ -194,6 +194,14 @@ boolean P_CrossSubsector (int num) if (s1 == s2) continue; + // Backsector may be NULL if this is an "impassible + // glass" hack line. + + if (line->backsector == NULL) + { + return false; + } + // stop because it is not two sided anyway // might do this after updating validcount? if ( !(line->flags & ML_TWOSIDED) ) |