| 111 | } |
| 112 | |
| 113 | void |
| 114 | newomonst(struct obj *otmp) |
| 115 | { |
| 116 | if (!otmp->oextra) |
| 117 | otmp->oextra = newoextra(); |
| 118 | |
| 119 | if (!OMONST(otmp)) { |
| 120 | struct monst *m = newmonst(); |
| 121 | |
| 122 | *m = cg.zeromonst; |
| 123 | OMONST(otmp) = m; |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | void |
| 128 | free_omonst(struct obj *otmp) |
no test coverage detected