Frees all the memory associated with lightmap objects
| 498 | |
| 499 | // Frees all the memory associated with lightmap objects |
| 500 | void ClearAllObjectLightmaps(int terrain) { |
| 501 | int i; |
| 502 | |
| 503 | for (i = 0; i <= Highest_object_index; i++) { |
| 504 | object *obj = &Objects[i]; |
| 505 | |
| 506 | if ((OBJECT_OUTSIDE(obj) != 0) != (terrain != 0)) |
| 507 | continue; |
| 508 | |
| 509 | if (obj->lm_object.used == 1) { |
| 510 | ClearObjectLightmaps(obj); |
| 511 | } |
| 512 | } |
| 513 | } |
| 514 | |
| 515 | // Sets up the memory to be used by an object for lightmaps |
| 516 | void SetupObjectLightmapMemory(object *obj) { |
no test coverage detected