Clears lightmaps for a single room
| 861 | |
| 862 | // Clears lightmaps for a single room |
| 863 | void ClearRoomLightmaps(int roomnum) { |
| 864 | int t; |
| 865 | |
| 866 | ASSERT(Rooms[roomnum].used); |
| 867 | |
| 868 | for (t = 0; t < Rooms[roomnum].num_faces; t++) { |
| 869 | if (Rooms[roomnum].faces[t].lmi_handle != BAD_LMI_INDEX) { |
| 870 | FreeLightmapInfo(Rooms[roomnum].faces[t].lmi_handle); |
| 871 | Rooms[roomnum].faces[t].lmi_handle = BAD_LMI_INDEX; |
| 872 | Rooms[roomnum].faces[t].flags &= ~FF_LIGHTMAP; |
| 873 | } |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | // Removes all room lightmaps from memory and sets indoor faces accordingly |
| 878 | // External=1 means to perform the operation on external rooms only, 0 means indoor rooms only |
no test coverage detected