- floatified po_man.cpp and the remaining bits in p_lnspec.cpp
This commit is contained in:
parent
1666418510
commit
7a2c8fdc1c
11 changed files with 273 additions and 293 deletions
|
|
@ -812,7 +812,10 @@ static void CalcPolyobjSoundOrg(const FPolyObj *poly, fixed_t *x, fixed_t *y, fi
|
|||
side_t *side;
|
||||
sector_t *sec;
|
||||
|
||||
poly->ClosestPoint(*x, *y, *x, *y, &side);
|
||||
DVector2 pos(FIXED2DBL(*x), FIXED2DBL(*y));
|
||||
poly->ClosestPoint(pos, pos, &side);
|
||||
*x = FLOAT2FIXED(pos.X);
|
||||
*y = FLOAT2FIXED(pos.Y);
|
||||
sec = side->sector;
|
||||
*z = clamp(*z, sec->floorplane.ZatPoint(*x, *y), sec->ceilingplane.ZatPoint(*x, *y));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue