jacket around really_kick_object */
| 486 | |
| 487 | /* jacket around really_kick_object */ |
| 488 | staticfn int |
| 489 | kick_object(coordxy x, coordxy y, char *kickobjnam) |
| 490 | { |
| 491 | int res = 0; |
| 492 | |
| 493 | *kickobjnam = '\0'; |
| 494 | /* if a pile, the "top" object gets kicked */ |
| 495 | gk.kickedobj = svl.level.objects[x][y]; |
| 496 | if (gk.kickedobj) { |
| 497 | /* formatted object name matters iff res==0 */ |
| 498 | Strcpy(kickobjnam, killer_xname(gk.kickedobj)); |
| 499 | /* kick object; if fatal, done() will clean up kickedobj */ |
| 500 | res = really_kick_object(x, y); |
| 501 | gk.kickedobj = (struct obj *) 0; |
| 502 | } |
| 503 | return res; |
| 504 | } |
| 505 | |
| 506 | /* guts of kick_object */ |
| 507 | staticfn int |
no test coverage detected