mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
iDas Netzwerkprotokoll repariert
This commit is contained in:
parent
f60b40b4a3
commit
106e62f78a
1 changed files with 3 additions and 10 deletions
|
@ -342,16 +342,9 @@ void SV_StartSound (vec3_t origin, edict_t *entity, int channel,
|
|||
if (flags & SND_VOLUME)
|
||||
MSG_WriteByte (&sv.multicast, volume*255);
|
||||
if (flags & SND_ATTENUATION)
|
||||
if (flags & SND_OFFSET)
|
||||
{
|
||||
if (attenuation >= 4.0)
|
||||
{
|
||||
Com_Printf ("GAME ERROR: Sound %s with bad attenuation %f, fixed.\n", sv.configstrings[CS_SOUNDS+soundindex], attenuation);
|
||||
attenuation = 3.984375;
|
||||
}
|
||||
MSG_WriteByte (&sv.multicast, (int)(attenuation*64));
|
||||
}
|
||||
MSG_WriteByte (&sv.multicast, (int)(timeofs*1000));
|
||||
MSG_WriteByte (&sv.multicast, attenuation*64);
|
||||
if (flags & SND_OFFSET)
|
||||
MSG_WriteByte (&sv.multicast, timeofs*1000);
|
||||
|
||||
if (flags & SND_ENT)
|
||||
MSG_WriteShort (&sv.multicast, sendchan);
|
||||
|
|
Loading…
Reference in a new issue