From: Mario Date: Tue, 18 Oct 2016 19:01:08 +0000 (+1000) Subject: Fix control point icon spinning rapidly when it comes into view X-Git-Tag: xonotic-v0.8.2~503 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1ebda184dcdd0a6e3f86ef09577e8c6ff397fab5;p=xonotic%2Fxonotic-data.pk3dir.git Fix control point icon spinning rapidly when it comes into view --- diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/sv_controlpoint.qc b/qcsrc/common/gamemodes/gamemode/onslaught/sv_controlpoint.qc index 491acdd00..0941833de 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/sv_controlpoint.qc +++ b/qcsrc/common/gamemodes/gamemode/onslaught/sv_controlpoint.qc @@ -5,6 +5,8 @@ bool cpicon_send(entity this, entity to, int sf) { WriteHeader(MSG_ENTITY, ENT_CLIENT_CONTROLPOINT_ICON); + if(sf & CPSF_SETUP) + sf &= ~CPSF_STATUS; WriteByte(MSG_ENTITY, sf); if(sf & CPSF_SETUP) {