X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=world.c;fp=world.c;h=42ed670d05665b3c6d4ee13de09e192fbb2e34c4;hp=9a20fd72817d18feb8e056eccdf98d312d385673;hb=81428659a4156981ed76f6167ef3be82d35a4bf8;hpb=b49b978aa7e5f734a083abc02110b1e8c5682c26 diff --git a/world.c b/world.c index 9a20fd72..42ed670d 100644 --- a/world.c +++ b/world.c @@ -2290,9 +2290,9 @@ static void World_Physics_Frame_BodyFromEntity(world_t *world, prvm_edict_t *ed) // check if trimesh can be defined with convex convex_compatible = false; - for (i = 0;i < model->nummodelsurfaces;i++) + for (i = model->submodelsurfaces_start;i < model->submodelsurfaces_end;i++) { - if (!strcmp(((msurface_t *)(model->data_surfaces + model->firstmodelsurface + i))->texture->name, "collisionconvex")) + if (!strcmp(model->data_surfaces[i].texture->name, "collisionconvex")) { convex_compatible = true; break;