]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix fields.server reference in surface attribute code
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 25 Feb 2008 10:29:30 +0000 (10:29 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 25 Feb 2008 10:29:30 +0000 (10:29 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8130 d7cf8633-e32d-0410-b094-e92efae38249

clvm_cmds.c

index 278149fa728251765036d2981865b084d6d38e7e..cedb6e818dcf536bfbd7ae5341e6b7aa92bd20c2 100644 (file)
@@ -1848,7 +1848,7 @@ static void VM_CL_getsurfacepointattribute(void)
        switch( attributetype ) {
                // float SPA_POSITION = 0;
                case 0:
-                       VectorAdd(&(model->surfmesh.data_vertex3f + 3 * surface->num_firstvertex)[pointnum * 3], ed->fields.server->origin, PRVM_G_VECTOR(OFS_RETURN));
+                       VectorAdd(&(model->surfmesh.data_vertex3f + 3 * surface->num_firstvertex)[pointnum * 3], ed->fields.client->origin, PRVM_G_VECTOR(OFS_RETURN));
                        break;
                // float SPA_S_AXIS = 1;
                case 1: