void SetupScaleWall (id0_unsigned_t picnum) { id0_int_t x,y; id0_unsigned_t scnum; id0_byte_t id0_far *dest; if (picnum == 1) return; scnum = picnum-FIRSTWALLPIC; if (walldirectory[scnum]) { MM_SetPurge (&walldirectory[scnum],0); return; // allready in memory } CA_CacheGrChunk (picnum); DeplanePic (picnum); MM_GetPtr(&walldirectory[scnum],64*64); dest = (id0_byte_t id0_far *)walldirectory[scnum]; for (x=0;x<64;x++) for (y=0;y<64;y++) *dest++ = spotvis[y][x]; grneeded[picnum]&= ~ca_levelbit; MM_FreePtr (&grsegs[picnum]); }
void SetupScalePic (id0_unsigned_t picnum) { id0_unsigned_t scnum; scnum = picnum-FIRSTSCALEPIC; if (shapedirectory[scnum]) { MM_SetPurge ((memptr *)&shapedirectory[scnum],0); return; // allready in memory } CA_CacheGrChunk (picnum); DeplanePic (picnum); shapesize[scnum] = BuildCompShape (&shapedirectory[scnum]); grneeded[picnum]&= ~ca_levelbit; MM_FreePtr (&grsegs[picnum]); }