mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
- actDropObject
This commit is contained in:
parent
e7ec2c072a
commit
f41c78d622
1 changed files with 3 additions and 3 deletions
|
@ -2865,10 +2865,10 @@ DBloodActor* actDropObject(DBloodActor* actor, int nType)
|
|||
|
||||
if (act2)
|
||||
{
|
||||
int top, bottom;
|
||||
double top, bottom;
|
||||
GetActorExtents(act2, &top, &bottom);
|
||||
if (bottom >= act2->int_pos().Z)
|
||||
act2->add_int_z(-(bottom - act2->int_pos().Z));
|
||||
if (bottom >= act2->spr.pos.Z)
|
||||
act2->spr.pos.Z -= (bottom - act2->spr.pos.Z);
|
||||
}
|
||||
|
||||
return act2;
|
||||
|
|
Loading…
Reference in a new issue