mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- 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:
parent
e2a018227f
commit
ebc4e5b4e1
1 changed files with 3 additions and 1 deletions
|
@ -86,7 +86,9 @@ void P_TouchSpecialThing (AActor *special, AActor *toucher)
|
|||
{
|
||||
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
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue