diff --git a/src/s_sound.cpp b/src/s_sound.cpp index d1fee071e..ac4dbc78f 100644 --- a/src/s_sound.cpp +++ b/src/s_sound.cpp @@ -773,7 +773,7 @@ static void CalcSectorSoundOrg(const DVector3 &listenpos, const sector_t *sec, i if (!(i_compatflags & COMPATF_SECTORSOUNDS)) { // Are we inside the sector? If yes, the closest point is the one we're on. - if (P_PointInSector(pos.X, pos.Y) == sec) + if (P_PointInSector(listenpos.X, listenpos.Y) == sec) { pos.X = (float)listenpos.X; pos.Z = (float)listenpos.Y;