- fixed a float/fixed mixup in R_PointOnSideSlow.
This commit is contained in:
parent
9412ce45d6
commit
8f5ac9b73f
5 changed files with 15 additions and 12 deletions
|
|
@ -763,7 +763,7 @@ static void CalcSectorSoundOrg(const sector_t *sec, int channum, fixed_t *x, fix
|
|||
if (!(i_compatflags & COMPATF_SECTORSOUNDS))
|
||||
{
|
||||
// Are we inside the sector? If yes, the closest point is the one we're on.
|
||||
if (P_PointInSector(*x, *y) == sec)
|
||||
if (P_PointInSector(FIXED2DBL(*x), FIXED2DBL(*y)) == sec)
|
||||
{
|
||||
FVector3 p = players[consoleplayer].camera->SoundPos();
|
||||
*x = FLOAT2FIXED(p.X);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue