fixed a reference to sv.models in client code (should have been
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 7 May 2007 02:48:43 +0000 (02:48 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 7 May 2007 02:48:43 +0000 (02:48 +0000)
cl.model_precache)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7238 d7cf8633-e32d-0410-b094-e92efae38249

cl_collision.c

index f7a9ef0..1fe3b93 100644 (file)
@@ -336,7 +336,7 @@ trace_t CL_Move(const vec3_t start, const vec3_t mins, const vec3_t maxs, const
                        unsigned int modelindex = (unsigned int)touch->fields.client->modelindex;
                        // if the modelindex is 0, it shouldn't be SOLID_BSP!
                        if (modelindex > 0 && modelindex < MAX_MODELS)
-                               model = sv.models[(int)touch->fields.client->modelindex];
+                               model = cl.model_precache[(int)touch->fields.client->modelindex];
                }
                if (model)
                        Matrix4x4_CreateFromQuakeEntity(&matrix, touch->fields.client->origin[0], touch->fields.client->origin[1], touch->fields.client->origin[2], touch->fields.client->angles[0], touch->fields.client->angles[1], touch->fields.client->angles[2], 1);