Module Name:    src
Committed By:   snj
Date:           Wed Dec  9 04:56:00 UTC 2009

Modified Files:
        src/games/rogue [netbsd-5]: monster.c

Log Message:
Pull up following revision(s) (requested by jdarrow in ticket #1186):
        games/rogue/monster.c: revision 1.16
Fix '=' for '==' in a test. From NAKAJIMA Yoshihiro in PR 42177.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.14.10.1 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.14 src/games/rogue/monster.c:1.14.10.1
--- src/games/rogue/monster.c:1.14	Mon Jan 14 03:50:01 2008
+++ src/games/rogue/monster.c	Wed Dec  9 04:56:00 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: monster.c,v 1.14 2008/01/14 03:50:01 dholland Exp $	*/
+/*	$NetBSD: monster.c,v 1.14.10.1 2009/12/09 04:56:00 snj 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.14 2008/01/14 03:50:01 dholland Exp $");
+__RCSID("$NetBSD: monster.c,v 1.14.10.1 2009/12/09 04:56:00 snj Exp $");
 #endif
 #endif /* not lint */
 
@@ -671,7 +671,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;

Reply via email to