]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/csqcmodel/sv_model.qc
Make the client side IS_PLAYER and IS_CLIENT checks more accurate
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / csqcmodel / sv_model.qc
index ba18464d723d80b3690c4f81c124c88211b4dabb..584bfc23ff6f0901f524f823e0b6e66465944c1d 100644 (file)
@@ -33,8 +33,9 @@ bool CSQCModel_Send(entity this, entity to, int sf)
        noref bool isnolocalplayer = (isplayer && (this != to));
 
        int psf = 0;
-       psf = BITSET(psf, ISPLAYER_ENT, isplayer);
+       psf = BITSET(psf, ISPLAYER_CLIENT, isplayer);
        psf = BITSET(psf, ISPLAYER_LOCAL, islocalplayer);
+       psf = BITSET(psf, ISPLAYER_PLAYER, IS_PLAYER(this));
 
        WriteHeader(MSG_ENTITY, ENT_CLIENT_MODEL);
        WriteInt24_t(MSG_ENTITY, sf);