Removes all room lightmaps from memory and sets indoor faces accordingly External=1 means to perform the operation on external rooms only, 0 means indoor rooms only
| 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 |
| 879 | void ClearAllRoomLightmaps(int external) { |
| 880 | int i; |
| 881 | |
| 882 | for (i = 0; i < MAX_ROOMS; i++) { |
| 883 | if (Rooms[i].used) { |
| 884 | if (external && !(Rooms[i].flags & RF_EXTERNAL)) |
| 885 | continue; |
| 886 | if (!external && (Rooms[i].flags & RF_EXTERNAL)) |
| 887 | continue; |
| 888 | |
| 889 | ClearRoomLightmaps(i); |
| 890 | } |
| 891 | } |
| 892 | } |
| 893 | |
| 894 | // Clears specmaps for a single room |
| 895 | void ClearRoomSpecmaps(int roomnum) { |
no test coverage detected