get_saved_games()
{
#if defined(SELECTSAVED)
- int n, j = 0;
+#if defined(WIN32) || defined(UNIX)
+ int n;
+#endif
+ int j = 0;
char **result = 0;
#ifdef WIN32
{
{
struct permonst *pa = magr->data, *pd = mdef->data;
int armpro;
- boolean cancelled;
+ /* this was moved downstream during a 2020 refactor */
+ /* boolean cancelled; */
struct mhitm_data mhm;
mhm.damage = d((int) mattk->damn, (int) mattk->damd);
mhm.hitflags = MM_MISS;
/* cancellation factor is the same as when attacking the hero */
armpro = magic_negation(mdef);
- cancelled = magr->mcan || !(rn2(10) >= 3 * armpro);
+ /* cancelled = magr->mcan || !(rn2(10) >= 3 * armpro); */
mhitm_adtyping(magr, mattk, mdef, &mhm);
if (mhm.done)
register struct attack *mattk;
{
struct permonst *mdat = mtmp->data;
- int uncancelled;
+ /* int uncancelled; */
int armpro;
struct permonst *olduasmon = g.youmonst.data;
int res;
* armor's special magic protection. Otherwise just use !mtmp->mcan.
*/
armpro = magic_negation(&g.youmonst);
- uncancelled = !mtmp->mcan && (rn2(10) >= 3 * armpro);
+ /* this was moved downstream during a 2020 refactor */
+ /* uncancelled = !mtmp->mcan && (rn2(10) >= 3 * armpro); */
mhitm_adtyping(mtmp, mattk, &g.youmonst, &mhm);
if (mhm.done)
branch *br; /* branch to place */
xchar x, y; /* location */
{
- coord m;
+ coord m = {0};
d_level *dest;
boolean make_stairs;
- struct mkroom *br_room;
+ /* struct mkroom *br_room; */
/*
* Return immediately if there is no branch to make or we have
return;
if (!x) { /* find random coordinates for branch */
- br_room = find_branch_room(&m);
+ /* br_room = find_branch_room(&m); */
+ (void) find_branch_room(&m); /* sets m via mazexy() or somexy() */
x = m.x;
y = m.y;
} else {
- br_room = pos_to_room(x, y);
+ /* br_room = pos_to_room(x, y); */
}
if (on_level(&br->end1, &u.uz)) {
boolean likegold = 0, likegems = 0, likeobjs = 0, likemagic = 0,
conceals = 0;
boolean likerock = 0, can_tunnel = 0;
- boolean can_open = 0, can_unlock = 0, doorbuster = 0;
+ boolean can_open = 0, can_unlock = 0 /*, doorbuster = 0 */;
boolean uses_items = 0, setlikes = 0;
boolean avoid = FALSE;
boolean better_with_displacing = FALSE;
can_open = !(nohands(ptr) || verysmall(ptr));
can_unlock = ((can_open && monhaskey(mtmp, TRUE))
|| mtmp->iswiz || is_rider(ptr));
- doorbuster = is_giant(ptr);
+ /* doorbuster = is_giant(ptr); */
if (mtmp->wormno)
goto not_special;
/* my dog gets special treatment */