Module Name: src
Committed By: dholland
Date: Mon Oct 19 02:34:40 UTC 2009
Modified Files:
src/games/rogue: monster.c
Log Message:
Fix '=' for '==' in a test. From NAKAJIMA Yoshihiro in PR 42177.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/games/rogue/monster.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/games/rogue/monster.c
diff -u src/games/rogue/monster.c:1.15 src/games/rogue/monster.c:1.16
--- src/games/rogue/monster.c:1.15 Wed Aug 12 08:44:45 2009
+++ src/games/rogue/monster.c Mon Oct 19 02:34:40 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: monster.c,v 1.15 2009/08/12 08:44:45 dholland Exp $ */
+/* $NetBSD: monster.c,v 1.16 2009/10/19 02:34:40 dholland Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)monster.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: monster.c,v 1.15 2009/08/12 08:44:45 dholland Exp $");
+__RCSID("$NetBSD: monster.c,v 1.16 2009/10/19 02:34:40 dholland Exp $");
#endif
#endif /* not lint */
@@ -679,7 +679,7 @@
for (i = 0; i < 9; i++) {
rand_around(i, &row, &col);
- if (((row == rogue.row) && (col = rogue.col)) ||
+ if (((row == rogue.row) && (col == rogue.col)) ||
(row < MIN_ROW) || (row > (DROWS-2)) ||
(col < 0) || (col > (DCOLS-1))) {
continue;