summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSamuel Villareal2010-09-02 03:58:58 +0000
committerSamuel Villareal2010-09-02 03:58:58 +0000
commita7950590b317f56124d572495beb4c0c8948a764 (patch)
treedba6b24cc042d2cfa587a355773f9ace7880ae11 /src
parent415940729df099709b9ffc8bfdd3eb5a52b2823d (diff)
downloadchocolate-doom-a7950590b317f56124d572495beb4c0c8948a764.tar.gz
chocolate-doom-a7950590b317f56124d572495beb4c0c8948a764.tar.bz2
chocolate-doom-a7950590b317f56124d572495beb4c0c8948a764.zip
+ Update to PIT_CheckThing
Subversion-branch: /branches/strife-branch Subversion-revision: 1996
Diffstat (limited to 'src')
-rw-r--r--src/strife/p_map.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/strife/p_map.c b/src/strife/p_map.c
index 31366a36..ebc6d78e 100644
--- a/src/strife/p_map.c
+++ b/src/strife/p_map.c
@@ -313,13 +313,13 @@ boolean PIT_CheckThing (mobj_t* thing)
if (thing == tmthing)
return true;
- // villsa [STRIFE] check thing z/height against tmthing's z
+ // villsa [STRIFE] see if it went over / under
if(thing->height + thing->z < tmthing->z)
- return true;
+ return true; // overhead
- // villsa [STRIFE] check tmthing z/height against thing's z
+ // villsa [STRIFE] see if it went over / under
if (tmthing->z + tmthing->height < thing->z)
- return true;
+ return true; // underneath
// villsa [STRIFE] unused
// check for skulls slamming into things
@@ -341,11 +341,13 @@ boolean PIT_CheckThing (mobj_t* thing)
// missiles can hit other things
if (tmthing->flags & MF_MISSILE)
{
+ // villsa [STRIFE] this code here has been moved at the beginning of this function
+ // TODO - verify
// see if it went over / under
- if (tmthing->z > thing->z + thing->height)
+ /*if (tmthing->z > thing->z + thing->height)
return true; // overhead
if (tmthing->z+tmthing->height < thing->z)
- return true; // underneath
+ return true; // underneath*/
// villsa [STRIFE] TODO - update to strife version
if (tmthing->target