SHARE
TWEET

Untitled

a guest Jun 19th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. static void Mod_Q3BSP_LoadTextures(lump_t *l)
  3. {
  4.     q3dtexture_t *in;
  5.     texture_t *out;
  6.     int i, count;
  7.  
  8.     in = (q3dtexture_t *)(mod_base + l->fileofs);
  9.     //if (l->filelen % sizeof(*in))
  10.     //  Host_Error("Mod_Q3BSP_LoadTextures: funny lump size in %s",loadmodel->name);
  11.     count = l->filelen / sizeof(*in);
  12.     out = (texture_t *)Mem_Alloc(loadmodel->mempool, count * sizeof(*out));
  13.  
  14.     loadmodel->data_textures = out;
  15.     loadmodel->num_textures = count;
  16.     loadmodel->num_texturesperskin = loadmodel->num_textures;
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top