From: MirceaKitsune Date: Thu, 2 Sep 2010 18:53:13 +0000 (+0300) Subject: Fix an issue with PlayerSound X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6454b7e5730c1fef8865be5f6ed45cbb93324377;p=voretournament%2Fvoretournament.git Fix an issue with PlayerSound --- diff --git a/data/qcsrc/server/cl_player.qc b/data/qcsrc/server/cl_player.qc index 88020455..b12a1074 100644 --- a/data/qcsrc/server/cl_player.qc +++ b/data/qcsrc/server/cl_player.qc @@ -1307,8 +1307,13 @@ void GlobalSound(string sample, float chan, float voicetype) void PlayerSound(entity player, .string samplefield, float chan, float voicetype) { string sample; - sample = player.samplefield; + entity oldself; + + oldself = self; + self = player; + sample = self.samplefield; GlobalSound(sample, chan, voicetype); + self = oldself; } void VoiceMessage(string type, string msg)