| 199 | } |
| 200 | |
| 201 | BOOL ItemPlace(int xp, int yp) |
| 202 | { |
| 203 | if (dMonster[xp][yp]) |
| 204 | return FALSE; |
| 205 | if (dPlayer[xp][yp]) |
| 206 | return FALSE; |
| 207 | if (dItem[xp][yp]) |
| 208 | return FALSE; |
| 209 | if (dObject[xp][yp]) |
| 210 | return FALSE; |
| 211 | if (dFlags[xp][yp] & BFLAG_POPULATED) |
| 212 | return FALSE; |
| 213 | if (nSolidTable[dPiece[xp][yp]]) |
| 214 | return FALSE; |
| 215 | |
| 216 | return TRUE; |
| 217 | } |
| 218 | |
| 219 | void AddInitItems() |
| 220 | { |