]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Restore initial _entcs_send calls with MSG_ONE as they are needed, but call them...
authorterencehill <piuntn@gmail.com>
Sat, 9 Mar 2019 18:57:26 +0000 (19:57 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 9 Mar 2019 18:57:26 +0000 (19:57 +0100)
qcsrc/common/ent_cs.qc

index 070197d7db79c6533ba607e41839857febd62a02..1c3a15a9bd32672b6b68f0829477f266aa4ccd3d 100644 (file)
@@ -196,6 +196,16 @@ ENTCS_PROP(FRAGS, true, frags, ENTCS_SET_NORMAL,
        {
                this.nextthink = time + 0.033333333333;  // TODO: increase this to like 0.15 once the client can do smoothing
                entity player = this.owner;
+               if (!this.realowner)
+               {
+                       this.realowner = player;
+                       if (IS_REAL_CLIENT(player))
+                               FOREACH_CLIENT(true, {
+                                       assert(CS(it).entcs);
+                                       _entcs_send(CS(it).entcs, msg_entity = player, BITS(23), MSG_ONE);
+                               });
+                       return;
+               }
                FOREACH(EntCSProps, it.m_check(this, player),
                {
                        this.SendFlags |= BIT(it.m_id);
@@ -208,7 +218,7 @@ ENTCS_PROP(FRAGS, true, frags, ENTCS_SET_NORMAL,
                entity e = CS(player).entcs = new(entcs_sender);
                e.owner = player;
                setthink(e, entcs_think);
-               e.nextthink = time;
+               e.nextthink = time + 0.033333333333;
                Net_LinkEntity(e, false, 0, entcs_send);
        }