diff options
author | Simon Howard | 2010-01-27 19:50:30 +0000 |
---|---|---|
committer | Simon Howard | 2010-01-27 19:50:30 +0000 |
commit | 0b8bf3cfe37a3d6e8ad01c0f6726430f53c0ad7e (patch) | |
tree | 483f983aacbd9907290cf61f0e3b3afb1b03f7e9 /src/p_sight.c | |
parent | 3cf74a97261b1a0aceb591b495b0857781918edd (diff) | |
parent | a9e2d244a5a37fed344405e40698de2a2969c12a (diff) | |
download | chocolate-doom-0b8bf3cfe37a3d6e8ad01c0f6726430f53c0ad7e.tar.gz chocolate-doom-0b8bf3cfe37a3d6e8ad01c0f6726430f53c0ad7e.tar.bz2 chocolate-doom-0b8bf3cfe37a3d6e8ad01c0f6726430f53c0ad7e.zip |
Merge from trunk.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1829
Diffstat (limited to 'src/p_sight.c')
-rw-r--r-- | src/p_sight.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/p_sight.c b/src/p_sight.c index e192567b..79c1bb1d 100644 --- a/src/p_sight.c +++ b/src/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) ) |