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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user