From 87a663b7aa0b74d11867999d073c7e468ce5e580 Mon Sep 17 00:00:00 2001 From: dholland Date: Mon, 19 Oct 2009 02:34:40 +0000 Subject: Fix '=' for '==' in a test. From NAKAJIMA Yoshihiro in PR 42177. --- rogue/monster.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rogue') diff --git a/rogue/monster.c b/rogue/monster.c index fd90f36d..79f2605e 100644 --- a/rogue/monster.c +++ b/rogue/monster.c @@ -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 @@ create_monster(void) 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; -- cgit v1.2.3-56-ge451