Skip to content

Commit

Permalink
Only play ID_SOUND_ARTIFACT_RECOVERED to the player picking up the ar…
Browse files Browse the repository at this point in the history
…tefact.

Fixes ticket:3488.
  • Loading branch information
Cyp committed May 24, 2012
1 parent 313738e commit acaf462
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/multigifts.cpp
Expand Up @@ -730,7 +730,10 @@ bool pickupArtefact(int toPlayer, int fromPlayer)
}
}

audio_QueueTrack(ID_SOUND_ARTIFACT_RECOVERED);
if (toPlayer == selectedPlayer)
{
audio_QueueTrack(ID_SOUND_ARTIFACT_RECOVERED);
}

return true;
}
Expand Down

0 comments on commit acaf462

Please sign in to comment.