| 125 | } |
| 126 | |
| 127 | BOOL RndLocOk(int xp, int yp) |
| 128 | { |
| 129 | if (dMonster[xp][yp]) |
| 130 | return FALSE; |
| 131 | if (dPlayer[xp][yp]) |
| 132 | return FALSE; |
| 133 | if (dObject[xp][yp]) |
| 134 | return FALSE; |
| 135 | if (dFlags[xp][yp] & BFLAG_POPULATED) |
| 136 | return FALSE; |
| 137 | if (nSolidTable[dPiece[xp][yp]]) |
| 138 | return FALSE; |
| 139 | if (leveltype != DTYPE_CATHEDRAL || dPiece[xp][yp] <= 126 || dPiece[xp][yp] >= 144) |
| 140 | return TRUE; |
| 141 | return FALSE; |
| 142 | } |
| 143 | |
| 144 | void InitRndLocObj(int min, int max, int objtype) |
| 145 | { |
no outgoing calls
no test coverage detected