| 283 | } |
| 284 | |
| 285 | staticfn struct entity * |
| 286 | e_at(coordxy x, coordxy y) |
| 287 | { |
| 288 | int entitycnt; |
| 289 | |
| 290 | for (entitycnt = 0; entitycnt < ENTITIES; entitycnt++) |
| 291 | if (go.occupants[entitycnt].edata |
| 292 | && go.occupants[entitycnt].ex == x |
| 293 | && go.occupants[entitycnt].ey == y) |
| 294 | break; |
| 295 | debugpline1("entitycnt = %d", entitycnt); |
| 296 | #ifdef D_DEBUG |
| 297 | wait_synch(); |
| 298 | #endif |
| 299 | return (entitycnt == ENTITIES) ? (struct entity *) 0 |
| 300 | : &(go.occupants[entitycnt]); |
| 301 | } |
| 302 | |
| 303 | staticfn void |
| 304 | m_to_e(struct monst *mtmp, coordxy x, coordxy y, struct entity *etmp) |
no test coverage detected