Fix weird assignment in xSndPlay3D weak func in zEnt

This commit is contained in:
Josh Sanchez
2025-02-15 10:34:30 -06:00
committed by Steven Casper
parent 13daf52eac
commit 1f89e8feee
+1 -3
View File
@@ -925,9 +925,7 @@ xMat4x3* xEntGetFrame(const xEnt* ent)
void xSndPlay3D(U32 id, F32 vol, F32 pitch, U32 priority, U32 flags, const xVec3* pos, F32 radius,
sound_category category, F32 delay)
{
// This is UB to assign radius in the function call like this, but the assembly matches a *=
// so maybe HI made a mistake here.
xSndPlay3D(id, vol, pitch, priority, flags, pos, radius *= 0.25f, radius, category, delay);
xSndPlay3D(id, vol, pitch, priority, flags, pos, radius / 4.0f, radius, category, delay);
}
S32 xNPCBasic::SelfType() const