Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Mesh
- if (f->mesh != "") {
- f->mesh_ptr[0] = gamedef->getMesh(f->mesh);
- scaleMesh(f->mesh_ptr[0], (v3f)(f.visual_scale,f.visual_scale,f.visual_scale));
- if (f->param_type_2 == CPT2_FACEDIR) {
- for (u16 j = 1; j < 24; j++) {
- f->mesh_ptr[j] = cloneMesh(f->mesh_ptr[0]);
- rotateMeshBy6dFacedir(f->mesh_ptr[j], j);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement