| 1334 | } |
| 1335 | |
| 1336 | void |
| 1337 | get_location_coord( |
| 1338 | coordxy *x, coordxy *y, |
| 1339 | int humidity, |
| 1340 | struct mkroom *croom, |
| 1341 | long crd) |
| 1342 | { |
| 1343 | unpacked_coord c; |
| 1344 | |
| 1345 | c = get_unpacked_coord(crd, humidity); |
| 1346 | *x = c.x; |
| 1347 | *y = c.y; |
| 1348 | get_location(x, y, c.getloc_flags | (c.is_random ? NO_LOC_WARN : 0), |
| 1349 | croom); |
| 1350 | |
| 1351 | if (*x == -1 && *y == -1 && c.is_random) |
| 1352 | get_location(x, y, humidity, croom); |
| 1353 | } |
| 1354 | |
| 1355 | /* |
| 1356 | * Get a relative position inside a room. |
no test coverage detected