mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2024-11-21 19:41:36 +00:00
Fixed a quake 3 bug. Fixed looping target_speakers not stopping
their sound when triggered. Thanks to Eraser from EntityPlus
This commit is contained in:
parent
70a22a9a8b
commit
554ca94331
1 changed files with 5 additions and 2 deletions
|
@ -132,7 +132,7 @@ static void CG_EntityEffects( centity_t *cent ) {
|
|||
CG_SetEntitySoundPosition( cent );
|
||||
|
||||
// add loop sound
|
||||
if ( cent->currentState.loopSound ) {
|
||||
if ( cent->currentState.loopSound) {
|
||||
if (cent->currentState.eType != ET_SPEAKER) {
|
||||
trap_S_AddLoopingSound( cent->currentState.number, cent->lerpOrigin, vec3_origin,
|
||||
cgs.gameSounds[ cent->currentState.loopSound ] );
|
||||
|
@ -141,7 +141,10 @@ static void CG_EntityEffects( centity_t *cent ) {
|
|||
cgs.gameSounds[ cent->currentState.loopSound ] );
|
||||
}
|
||||
}
|
||||
|
||||
else {
|
||||
trap_S_StopLoopingSound(cent->currentState.number);
|
||||
}
|
||||
|
||||
|
||||
// constant light glow
|
||||
if ( cent->currentState.constantLight ) {
|
||||
|
|
Loading…
Reference in a new issue