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:
@@ -2490,6 +2490,7 @@ E void FDECL(selection_free, (struct selectionvar *, BOOLEAN_P));
|
||||
E void FDECL(set_selection_floodfillchk, (int FDECL((*), (int,int))));
|
||||
E void FDECL(selection_floodfill, (struct selectionvar *, int, int,
|
||||
BOOLEAN_P));
|
||||
E boolean FDECL(pm_good_location, (int, int, struct permonst *));
|
||||
E void FDECL(get_location_coord, (schar *, schar *, int, struct mkroom *,
|
||||
long));
|
||||
E void FDECL(selection_setpoint, (int, int, struct selectionvar *, XCHAR_P));
|
||||
|
||||
Reference in New Issue
Block a user