Change light source's ID from src to dest. */
| 703 | |
| 704 | /* Change light source's ID from src to dest. */ |
| 705 | void |
| 706 | obj_move_light_source(struct obj *src, struct obj *dest) |
| 707 | { |
| 708 | light_source *ls; |
| 709 | |
| 710 | for (ls = gl.light_base; ls; ls = ls->next) |
| 711 | if (ls->type == LS_OBJECT && ls->id.a_obj == src) |
| 712 | ls->id.a_obj = dest; |
| 713 | src->lamplit = 0; |
| 714 | dest->lamplit = 1; |
| 715 | } |
| 716 | |
| 717 | /* return true if there exist any light sources */ |
| 718 | boolean |
nothing calls this directly
no outgoing calls
no test coverage detected