]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - svvm_cmds.c
removed detection of GL_NV_texture_shader extension which was previously used for...
[xonotic/darkplaces.git] / svvm_cmds.c
index 7758ed47fbad8d3138a976e3719f6a5e49a4b0be..860d7a027742355823f97d2924bdde17791b6f61 100644 (file)
@@ -2258,7 +2258,7 @@ int SV_GetEntityLocalTagMatrix(prvm_edict_t *ent, int tagindex, matrix4x4_t *out
                        frame = 0;
                return Mod_Alias_GetTagMatrix(model, model->animscenes[frame].firstframe, tagindex, out);
        }
-       Matrix4x4_CreateIdentity(out);
+       *out = identitymatrix;
        return 0;
 }
 
@@ -2280,7 +2280,7 @@ int SV_GetTagMatrix (matrix4x4_t *out, prvm_edict_t *ent, int tagindex)
        matrix4x4_t entitymatrix, tagmatrix, attachmatrix;
        model_t *model;
 
-       Matrix4x4_CreateIdentity(out); // warnings and errors return identical matrix
+       *out = identitymatrix; // warnings and errors return identical matrix
 
        if (ent == prog->edicts)
                return 1;
@@ -2293,7 +2293,7 @@ int SV_GetTagMatrix (matrix4x4_t *out, prvm_edict_t *ent, int tagindex)
 
        model = sv.models[modelindex];
 
-       Matrix4x4_CreateIdentity(&tagmatrix);
+       tagmatrix = identitymatrix;
        // DP_GFX_QUAKE3MODELTAGS, scan all chain and stop on unattached entity
        attachloop = 0;
        for (;;)
@@ -2440,6 +2440,9 @@ void PF_spawnclient (void)
                {
                        prog->xfunction->builtinsprofile += 100;
                        SV_ConnectClient (i, NULL);
+                       // this has to be set or else ClientDisconnect won't be called
+                       // we assume the qc will call ClientConnect...
+                       svs.clients[i].clientconnectcalled = true;
                        ed = PRVM_EDICT_NUM(i + 1);
                        break;
                }