MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / CopyFaceFlags

Function CopyFaceFlags

editor/Erooms.cpp:2818–2826  ·  view source on GitHub ↗

Copy the flags from one face to another derrived from the first (by clipping or splitting) Only those flags which are safe to copy are copied Parameters: dfp - pointer to the destination face sfp - pointer to the source face

Source from the content-addressed store, hash-verified

2816// Parameters: dfp - pointer to the destination face
2817// sfp - pointer to the source face
2818void CopyFaceFlags(face *dfp, face *sfp) {
2819 dfp->flags = 0;
2820
2821 //@@if (sfp->flags & FF_FORCEFIELD)
2822 //@@ dfp->flags |= FF_FORCEFIELD;
2823
2824 if (sfp->flags & FF_GOALFACE)
2825 dfp->flags |= FF_GOALFACE;
2826}
2827
2828// Inserts a vertex into a face
2829// Parameters: rp - the room for this face

Callers 3

ClipFaceFunction · 0.85
TriangulateFaceFunction · 0.85
SplitFaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected