* Find the drawbridge wall associated with a drawbridge. */
| 208 | * Find the drawbridge wall associated with a drawbridge. |
| 209 | */ |
| 210 | staticfn void |
| 211 | get_wall_for_db(coordxy *x, coordxy *y) |
| 212 | { |
| 213 | switch (levl[*x][*y].drawbridgemask & DB_DIR) { |
| 214 | case DB_NORTH: |
| 215 | (*y)--; |
| 216 | break; |
| 217 | case DB_SOUTH: |
| 218 | (*y)++; |
| 219 | break; |
| 220 | case DB_EAST: |
| 221 | (*x)++; |
| 222 | break; |
| 223 | case DB_WEST: |
| 224 | (*x)--; |
| 225 | break; |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | /* |
| 230 | * Creation of a drawbridge at pos x,y. |
no outgoing calls
no test coverage detected