From 9da9802e3ccfef828f595a779ecfd22583520329 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 16 Feb 2017 17:02:00 +1000 Subject: [PATCH] Fix joining after spectating keeping the spectatee's gun alignment --- qcsrc/server/client.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index ffd380810..3ecac4885 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -655,7 +655,7 @@ void PutClientInServer(entity this) .entity weaponentity = weaponentities[slot]; entity oldwep = this.(weaponentity); CL_SpawnWeaponentity(this, weaponentity); - if(oldwep) + if(oldwep && oldwep.owner == this) this.(weaponentity).m_gunalign = oldwep.m_gunalign; } this.alpha = default_player_alpha; -- 2.39.2