apply Janet's lint catches to trunk

This commit is contained in:
nethack.allison
2003-12-10 01:23:14 +00:00
parent 887d2defd1
commit f935974e02
4 changed files with 7 additions and 3 deletions

View File

@@ -374,7 +374,8 @@ boolean with_you;
if (xlocale && ylocale)
place_object(obj, xlocale, ylocale);
else if (rloco(obj)) {
get_obj_location(obj, &xlocale, &ylocale, 0);
if (!get_obj_location(obj, &xlocale, &ylocale, 0))
impossible("Can't find relocated object.");
}
}
corpse = mkcorpstat(CORPSE, (struct monst *)0, mtmp->data,

View File

@@ -894,7 +894,7 @@ register int pm;
if (dmgtype(ptr, AD_STUN) || dmgtype(ptr, AD_HALU) ||
pm == PM_VIOLET_FUNGUS) {
pline ("Oh wow! Great stuff!");
make_hallucinated(HHallucination + 200,FALSE,0L);
(void) make_hallucinated(HHallucination + 200,FALSE,0L);
}
if(is_giant(ptr)) gainstr((struct obj *)0, 0);

View File

@@ -329,7 +329,8 @@ boolean forcecontrol;
}
if (is_pool(u.ux,u.uy) && was_floating && !(Levitation || Flying) &&
!breathless(youmonst.data) && !amphibious(youmonst.data) &&
!Swimming) drown();
!Swimming)
(void) drown();
}
/* (try to) make a mntmp monster out of the player */