Fix priest generated inside temple wall
In a rare case, a random room's width can be 2 tiles, and if that room was converted into a temple, the priest ended up inside the wall. Try to put the priest on a random valid position around the altar, or on it.
This commit is contained in:
@@ -1084,6 +1084,14 @@ register int humidity;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
boolean
|
||||
pm_good_location(x, y, pm)
|
||||
int x, y;
|
||||
struct permonst *pm;
|
||||
{
|
||||
return is_ok_location(x, y, pm_to_humidity(pm));
|
||||
}
|
||||
|
||||
static unpacked_coord
|
||||
get_unpacked_coord(loc, defhumidity)
|
||||
long loc;
|
||||
|
||||
Reference in New Issue
Block a user