* Check whether object has a timer of type timer_type. */
| 2401 | * Check whether object has a timer of type timer_type. |
| 2402 | */ |
| 2403 | boolean |
| 2404 | obj_has_timer(struct obj *object, short timer_type) |
| 2405 | { |
| 2406 | long timeout = peek_timer(timer_type, obj_to_any(object)); |
| 2407 | |
| 2408 | return (boolean) (timeout != 0L); |
| 2409 | } |
| 2410 | |
| 2411 | /* |
| 2412 | * Stop all timers of index func_index at this spot. |
no test coverage detected