From: terencehill Date: Thu, 3 Mar 2022 14:01:15 +0000 (+0100) Subject: Execute TRANSMUTE(Observer, this); slightly earlier in PutObserverInServer (no functi... X-Git-Tag: xonotic-v0.8.5~180 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8e263982af14b26454332978699e9abde02953ea;p=xonotic%2Fxonotic-data.pk3dir.git Execute TRANSMUTE(Observer, this); slightly earlier in PutObserverInServer (no functional change) --- 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)