- floatification of sector_t::centerspot.

This commit is contained in:
Christoph Oelckers 2016-03-26 09:38:58 +01:00
commit 35bb686281
9 changed files with 52 additions and 47 deletions

View file

@ -709,8 +709,8 @@ static void CalcPosVel(int type, const AActor *actor, const sector_t *sector,
}
else
{
x = sector->centerspot.x;
z = sector->centerspot.y;
x = sector->_f_centerspot().x;
z = sector->_f_centerspot().y;
chanflags |= CHAN_LISTENERZ;
}
}
@ -777,8 +777,8 @@ static void CalcSectorSoundOrg(const sector_t *sec, int channum, fixed_t *x, fix
}
else
{
*x = sec->centerspot.x;
*y = sec->centerspot.y;
*x = sec->_f_centerspot().x;
*y = sec->_f_centerspot().y;
}
// Set sound vertical position based on channel.