Lines Matching refs:polyobjs

54 polyobj_t *polyobjs; // list of all poly-objects on the level  variable
556 if(polyobjs[i].tag == polyNum) in GetPolyobj()
558 return &polyobjs[i]; in GetPolyobj()
576 if(polyobjs[i].tag == poly) in GetPolyobjMirror()
578 return((*polyobjs[i].segs)->linedef->arg2); in GetPolyobjMirror()
1119 LinkPolyobj(&polyobjs[i]); in InitBlockMap()
1123 segList = polyobjs[i].segs; in InitBlockMap()
1126 for(j = 0; j < polyobjs[i].numsegs; j++, segList++) in InitBlockMap()
1210 if(polyobjs[index].segs) in SpawnPolyobj()
1221 polyobjs[index].numsegs = PolySegCount; in SpawnPolyobj()
1222 polyobjs[index].segs = Z_Malloc(PolySegCount*sizeof(seg_t *), in SpawnPolyobj()
1224 *(polyobjs[index].segs) = &segs[i]; // insert the first seg in SpawnPolyobj()
1226 polyobjs[index].segs+1); in SpawnPolyobj()
1227 polyobjs[index].crush = crush; in SpawnPolyobj()
1228 polyobjs[index].tag = tag; in SpawnPolyobj()
1229 polyobjs[index].seqType = segs[i].linedef->arg3; in SpawnPolyobj()
1230 if(polyobjs[index].seqType < 0 in SpawnPolyobj()
1231 || polyobjs[index].seqType >= SEQTYPE_NUMSEQ) in SpawnPolyobj()
1233 polyobjs[index].seqType = 0; in SpawnPolyobj()
1238 if(!polyobjs[index].segs) in SpawnPolyobj()
1241 polyobjs[index].numsegs = 0; in SpawnPolyobj()
1258 polyobjs[index].numsegs++; in SpawnPolyobj()
1294 if(polyobjs[index].numsegs) in SpawnPolyobj()
1296 PolySegCount = polyobjs[index].numsegs; // PolySegCount used globally in SpawnPolyobj()
1297 polyobjs[index].crush = crush; in SpawnPolyobj()
1298 polyobjs[index].tag = tag; in SpawnPolyobj()
1299 polyobjs[index].segs = Z_Malloc(polyobjs[index].numsegs in SpawnPolyobj()
1301 for(i = 0; i < polyobjs[index].numsegs; i++) in SpawnPolyobj()
1303 polyobjs[index].segs[i] = polySegList[i]; in SpawnPolyobj()
1305 polyobjs[index].seqType = (*polyobjs[index].segs)->linedef->arg4; in SpawnPolyobj()
1309 (*polyobjs[index].segs)->linedef->arg2 = in SpawnPolyobj()
1310 (*polyobjs[index].segs)->linedef->arg3; in SpawnPolyobj()
1335 if(polyobjs[i].tag == tag) in TranslateToStartSpot()
1337 po = &polyobjs[i]; in TranslateToStartSpot()
1414 polyobjs = Z_Malloc(po_NumPolyobjs*sizeof(polyobj_t), PU_LEVEL, 0); in PO_Init()
1415 memset(polyobjs, 0, po_NumPolyobjs*sizeof(polyobj_t)); in PO_Init()
1432 polyobjs[polyIndex].startSpot.x = mt->x<<FRACBITS; in PO_Init()
1433 polyobjs[polyIndex].startSpot.y = mt->y<<FRACBITS; in PO_Init()
1454 if(!polyobjs[i].originalPts) in PO_Init()
1457 polyobjs[i].tag); in PO_Init()