]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix control point icon spinning rapidly when it comes into view
authorMario <mario@smbclan.net>
Tue, 18 Oct 2016 19:01:08 +0000 (05:01 +1000)
committerMario <mario@smbclan.net>
Tue, 18 Oct 2016 19:01:08 +0000 (05:01 +1000)
qcsrc/common/gamemodes/gamemode/onslaught/sv_controlpoint.qc

index 491acdd007d8635cac7417c2bd5acdc11c6cff95..0941833de8acd7430cc7fb35cef56c104bf405bf 100644 (file)
@@ -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)
        {