* When is the spot timer of type func_index going to expire? * Returns 0L if no such timer. */
| 2442 | * Returns 0L if no such timer. |
| 2443 | */ |
| 2444 | long |
| 2445 | spot_time_expires(coordxy x, coordxy y, short func_index) |
| 2446 | { |
| 2447 | timer_element *curr; |
| 2448 | long where = (((long) x << 16) | ((long) y)); |
| 2449 | |
| 2450 | for (curr = gt.timer_base; curr; curr = curr->next) { |
| 2451 | if (curr->kind == TIMER_LEVEL && curr->func_index == func_index |
| 2452 | && curr->arg.a_long == where) |
| 2453 | return curr->timeout; |
| 2454 | } |
| 2455 | return 0L; |
| 2456 | } |
| 2457 | |
| 2458 | long |
| 2459 | spot_time_left(coordxy x, coordxy y, short func_index) |
no outgoing calls
no test coverage detected