camera flashes have Null object; caller wants to get rid of them now */
| 358 | |
| 359 | /* camera flashes have Null object; caller wants to get rid of them now */ |
| 360 | staticfn void |
| 361 | discard_flashes(void) |
| 362 | { |
| 363 | light_source *ls, *nxt_ls; |
| 364 | |
| 365 | for (ls = gl.light_base; ls; ls = nxt_ls) { |
| 366 | nxt_ls = ls->next; |
| 367 | if (ls->type == LS_OBJECT && !ls->id.a_obj) |
| 368 | delete_ls(ls); |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | /* (mon->mx == 0) implies migrating */ |
| 373 | #define mon_is_local(mon) ((mon)->mx > 0) |
no test coverage detected