Fix a few build issues seen by various compilers

that I have on my system but haven't used for a while
(a couple of warnings and a couple of errors)
This commit is contained in:
nethack.allison
2008-12-30 22:02:31 +00:00
parent b8ed7412dc
commit 76350a5348
4 changed files with 4 additions and 4 deletions

View File

@@ -2399,7 +2399,7 @@ glovecheck: target = which_armor(mtmp, W_ARMG);
if (in_sight) seetrap(trap);
if ((mtmp->mhp -= dmgval2) <= 0)
monkilled(mtmp, in_sight ?
"compression from an anti-magic field" : 0,
"compression from an anti-magic field" : (const char *)0,
-AD_MAGM);
if (mtmp->mhp <= 0) trapkilled = TRUE;
if (see_it) newsym(trap->tx, trap->ty);