Free the memory used by a room face structure
| 738 | |
| 739 | // Free the memory used by a room face structure |
| 740 | void FreeRoomFace(face *fp) { |
| 741 | if (fp->lmi_handle != BAD_LMI_INDEX) { |
| 742 | FreeLightmapInfo(fp->lmi_handle); |
| 743 | fp->lmi_handle = BAD_LMI_INDEX; |
| 744 | fp->flags &= ~FF_LIGHTMAP; |
| 745 | } |
| 746 | |
| 747 | if (fp->special_handle != BAD_SPECIAL_FACE_INDEX) { |
| 748 | FreeSpecialFace(fp->special_handle); |
| 749 | fp->special_handle = BAD_SPECIAL_FACE_INDEX; |
| 750 | } |
| 751 | |
| 752 | RoomMemFree(fp->face_verts); |
| 753 | RoomMemFree(fp->face_uvls); |
| 754 | } |
| 755 | |
| 756 | // Finds the center point of a room |
| 757 | // Parameters: vp - filled in with the center point |
no test coverage detected