diff options
Diffstat (limited to 'apps/plugins/doom/p_spec.c')
-rw-r--r-- | apps/plugins/doom/p_spec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/doom/p_spec.c b/apps/plugins/doom/p_spec.c index 2876b7f4e5..8e3c81b76e 100644 --- a/apps/plugins/doom/p_spec.c +++ b/apps/plugins/doom/p_spec.c | |||
@@ -955,11 +955,11 @@ int P_SectorActive(special_e t,sector_t *sec) | |||
955 | switch (t) // return whether thinker of same type is active | 955 | switch (t) // return whether thinker of same type is active |
956 | { | 956 | { |
957 | case floor_special: | 957 | case floor_special: |
958 | return (int)sec->floordata; | 958 | return (sec->floordata!=NULL); |
959 | case ceiling_special: | 959 | case ceiling_special: |
960 | return (int)sec->ceilingdata; | 960 | return (sec->ceilingdata!=NULL); |
961 | case lighting_special: | 961 | case lighting_special: |
962 | return (int)sec->lightingdata; | 962 | return (sec->lightingdata!=NULL); |
963 | } | 963 | } |
964 | return 1; // don't know which special, must be active, shouldn't be here | 964 | return 1; // don't know which special, must be active, shouldn't be here |
965 | } | 965 | } |