the #untrap command - disarm a trap */
| 5245 | |
| 5246 | /* the #untrap command - disarm a trap */ |
| 5247 | int |
| 5248 | dountrap(void) |
| 5249 | { |
| 5250 | if (!could_untrap(TRUE, FALSE)) |
| 5251 | return ECMD_OK; |
| 5252 | |
| 5253 | return untrap(FALSE, 0, 0, (struct obj *) 0) ? ECMD_TIME : ECMD_OK; |
| 5254 | } |
| 5255 | |
| 5256 | /* preliminary checks for dountrap(); also used for autounlock */ |
| 5257 | int |
nothing calls this directly
no test coverage detected