bit logic fix (trunk only)
Fix some expressions that were supposed to use bitwise '&' but were accidentally using logical '&&', pointed out by Keni's lint tool. All 3 instances are in post-3.4.3 code, so don't affect the branch and don't need a fixes entry.
This commit is contained in:
+1
-2
@@ -1,5 +1,4 @@
|
||||
/* NetHack 3.5 dogmove.c $Date$ $Revision$ */
|
||||
/* SCCS Id: @(#)dogmove.c 3.5 2008/10/20 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -775,7 +774,7 @@ register int after; /* this is extra fast monster movement */
|
||||
int mstatus;
|
||||
register struct monst *mtmp2 = m_at(nx,ny);
|
||||
mstatus = mdisplacem(mtmp, mtmp2, FALSE); /* displace monster */
|
||||
if (mstatus && MM_DEF_DIED) return 2;
|
||||
if (mstatus & MM_DEF_DIED) return 2;
|
||||
return 0;
|
||||
}
|
||||
#endif /* BARGETHROUGH */
|
||||
|
||||
Reference in New Issue
Block a user