From 8e263982af14b26454332978699e9abde02953ea Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 3 Mar 2022 15:01:15 +0100 Subject: [PATCH] Execute TRANSMUTE(Observer, this); slightly earlier in PutObserverInServer (no functional change) --- qcsrc/server/client.qc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 895085430..aeb392c60 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -303,13 +303,16 @@ void PutObserverInServer(entity this, bool is_forced, bool use_spawnpoint) if (this.vehicle) vehicles_exit(this.vehicle, VHEF_RELEASE); + TRANSMUTE(Observer, this); + + if(recount_ready) ReadyCount(); + WaypointSprite_PlayerDead(this); + accuracy_resend(this); if (CS(this).killcount != FRAGS_SPECTATOR && !game_stopped && CHAT_NOSPECTATORS()) Send_Notification(NOTIF_ONE_ONLY, this, MSG_INFO, INFO_CHAT_NOSPECTATORS); - accuracy_resend(this); - CS(this).spectatortime = time; if(this.bot_attack) IL_REMOVE(g_bot_targets, this); @@ -318,8 +321,6 @@ void PutObserverInServer(entity this, bool is_forced, bool use_spawnpoint) IL_REMOVE(g_monster_targets, this); this.monster_attack = false; STAT(HUD, this) = HUD_NORMAL; - TRANSMUTE(Observer, this); - if(recount_ready) ReadyCount(); this.iscreature = false; this.teleportable = TELEPORT_SIMPLE; if(this.damagedbycontents) -- 2.39.2