Changed BroadcastSoundEffect function to take floating pos.
This commit is contained in:
@@ -1937,7 +1937,7 @@ void cPlayer::UseEquippedItem(void)
|
||||
|
||||
if (GetInventory().DamageEquippedItem())
|
||||
{
|
||||
m_World->BroadcastSoundEffect("random.break", (int)GetPosX() * 8, (int)GetPosY() * 8, (int)GetPosZ() * 8, 0.5f, (float)(0.75 + ((float)((GetUniqueID() * 23) % 32)) / 64));
|
||||
m_World->BroadcastSoundEffect("random.break", GetPosX(), GetPosY(), GetPosZ(), 0.5f, (float)(0.75 + ((float)((GetUniqueID() * 23) % 32)) / 64));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user