remove the code to silence lint

Warning facilities on recent compilers are incredibly improved,
so the code to silence "good-old" lint is much less sense.
This commit is contained in:
SHIRAKATA Kentaro
2022-11-17 18:34:37 +09:00
committed by PatR
parent 7d55e71d24
commit 0d441b0c2f
13 changed files with 4 additions and 76 deletions

View File

@@ -4660,9 +4660,7 @@ newcham(
/* set level and hit points */
newmonhp(mtmp, monsndx(mdat));
/* new hp: same fraction of max as before */
#ifndef LINT
mtmp->mhp = (int) (((long) hpn * (long) mtmp->mhp) / (long) hpd);
#endif
/* sanity check (potential overflow) */
if (mtmp->mhp < 0 || mtmp->mhp > mtmp->mhpmax)
mtmp->mhp = mtmp->mhpmax;