couple of formatting bits

This commit is contained in:
PatR
2025-04-20 17:18:49 -07:00
parent 617b7588cc
commit 9f04269ec4
2 changed files with 6 additions and 4 deletions

View File

@@ -1458,7 +1458,8 @@ throwit_return(boolean clear_thrownobj)
}
staticfn void
swallowit(struct obj *obj){
swallowit(struct obj *obj)
{
if (obj != uball) {
(void) mpickobj(u.ustuck, obj); /* clears 'gt.thrownobj' */
throwit_return(FALSE);
@@ -1468,7 +1469,8 @@ swallowit(struct obj *obj){
/* throw an object, NB: obj may be consumed in the process */
void
throwit(struct obj *obj,
throwit(
struct obj *obj,
long wep_mask, /* used to re-equip returning boomerang */
boolean twoweap, /* used to restore twoweapon mode if
* wielded weapon returns */

View File

@@ -773,9 +773,9 @@ makeniche(int trap_type)
dosdoor(xx, yy, aroom, SDOOR);
} else {
rm->typ = CORR;
if (rn2(7))
if (rn2(7)) {
dosdoor(xx, yy, aroom, rn2(5) ? SDOOR : DOOR);
else {
} else {
/* inaccessible niches occasionally have iron bars */
if (!rn2(5) && IS_WALL(levl[xx][yy].typ)) {
(void) set_levltyp(xx, yy, IRONBARS);