try to find a particular type of object at designated map location */
| 1463 | |
| 1464 | /* try to find a particular type of object at designated map location */ |
| 1465 | struct obj * |
| 1466 | sobj_at(int otyp, coordxy x, coordxy y) |
| 1467 | { |
| 1468 | struct obj *otmp; |
| 1469 | |
| 1470 | for (otmp = svl.level.objects[x][y]; otmp; otmp = otmp->nexthere) |
| 1471 | if (otmp->otyp == otyp) |
| 1472 | break; |
| 1473 | |
| 1474 | return otmp; |
| 1475 | } |
| 1476 | |
| 1477 | /* sobj_at(&c) traversal -- find next object of specified type */ |
| 1478 | struct obj * |
no outgoing calls