Advertisement
Guest User

Untitled

a guest
Oct 9th, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. // Mesh
  2. if (f->mesh != "") {
  3. f->mesh_ptr[0] = gamedef->getMesh(f->mesh);
  4. scaleMesh(f->mesh_ptr[0], (v3f)(f.visual_scale,f.visual_scale,f.visual_scale));
  5. if (f->param_type_2 == CPT2_FACEDIR) {
  6. for (u16 j = 1; j < 24; j++) {
  7. f->mesh_ptr[j] = cloneMesh(f->mesh_ptr[0]);
  8. rotateMeshBy6dFacedir(f->mesh_ptr[j], j);
  9. }
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement