Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/rogue Fix '=' for '==' in a test. From NAKAJIMA Yoshih...
details: https://anonhg.NetBSD.org/src/rev/af478dff09fa
branches: trunk
changeset: 748281:af478dff09fa
user: dholland <dholland%NetBSD.org@localhost>
date: Mon Oct 19 02:34:40 2009 +0000
description:
Fix '=' for '==' in a test. From NAKAJIMA Yoshihiro in PR 42177.
diffstat:
games/rogue/monster.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d201cfdc7dee -r af478dff09fa games/rogue/monster.c
--- a/games/rogue/monster.c Mon Oct 19 02:31:26 2009 +0000
+++ b/games/rogue/monster.c Mon Oct 19 02:34:40 2009 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index