Silence some compiler warnings
This commit is contained in:
@@ -194,7 +194,7 @@
|
|||||||
|| ((ptr)->mlet == S_PUDDING && (ptr) != &mons[PM_BLACK_PUDDING]))
|
|| ((ptr)->mlet == S_PUDDING && (ptr) != &mons[PM_BLACK_PUDDING]))
|
||||||
|
|
||||||
#define befriend_with_obj(ptr, obj) \
|
#define befriend_with_obj(ptr, obj) \
|
||||||
((obj)->oclass == FOOD_CLASS && is_domestic(ptr) \
|
(((obj)->oclass == FOOD_CLASS && is_domestic(ptr)) \
|
||||||
|| ((obj)->otyp == BANANA && \
|
|| ((obj)->otyp == BANANA && \
|
||||||
((ptr) == &mons[PM_MONKEY] \
|
((ptr) == &mons[PM_MONKEY] \
|
||||||
|| (ptr) == &mons[PM_APE])))
|
|| (ptr) == &mons[PM_APE])))
|
||||||
|
|||||||
@@ -293,7 +293,7 @@ register struct monst *magr, *mdef;
|
|||||||
{
|
{
|
||||||
int i, /* loop counter */
|
int i, /* loop counter */
|
||||||
tmp, /* amour class difference */
|
tmp, /* amour class difference */
|
||||||
strike, /* hit this attack */
|
strike = 0, /* hit this attack */
|
||||||
attk, /* attack attempted this time */
|
attk, /* attack attempted this time */
|
||||||
struck = 0, /* hit at least once */
|
struck = 0, /* hit at least once */
|
||||||
res[NATTK]; /* results of all attacks */
|
res[NATTK]; /* results of all attacks */
|
||||||
|
|||||||
@@ -349,7 +349,7 @@ mattacku(mtmp)
|
|||||||
register struct monst *mtmp;
|
register struct monst *mtmp;
|
||||||
{
|
{
|
||||||
struct attack *mattk, alt_attk;
|
struct attack *mattk, alt_attk;
|
||||||
int i, j, tmp, sum[NATTK];
|
int i, j = 0, tmp, sum[NATTK];
|
||||||
struct permonst *mdat = mtmp->data;
|
struct permonst *mdat = mtmp->data;
|
||||||
boolean ranged = (distu(mtmp->mx, mtmp->my) > 3);
|
boolean ranged = (distu(mtmp->mx, mtmp->my) > 3);
|
||||||
/* Is it near you? Affects your actions */
|
/* Is it near you? Affects your actions */
|
||||||
|
|||||||
Reference in New Issue
Block a user