- Fixed: P_TouchSpecialThing() considered all pickup items to be 32 units tall for the sake

of touching, even if they were taller.

SVN r3814 (trunk)
This commit is contained in:
Randy Heit 2012-08-10 02:17:16 +00:00
parent e2a018227f
commit ebc4e5b4e1

View file

@ -86,7 +86,9 @@ void P_TouchSpecialThing (AActor *special, AActor *toucher)
{ {
fixed_t delta = special->z - toucher->z; fixed_t delta = special->z - toucher->z;
if (delta > toucher->height || delta < -32*FRACUNIT) // The pickup is at or above the toucher's feet OR
// The pickup is below the toucher.
if (delta > toucher->height || delta < MIN(-32*FRACUNIT, -special->height))
{ // out of reach { // out of reach
return; return;
} }