From 6454b7e5730c1fef8865be5f6ed45cbb93324377 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 2 Sep 2010 21:53:13 +0300 Subject: [PATCH] Fix an issue with PlayerSound --- data/qcsrc/server/cl_player.qc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 2.39.2