diff options
author | dholland <dholland@NetBSD.org> | 2009-10-19 02:34:40 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-10-19 02:34:40 +0000 |
commit | 87a663b7aa0b74d11867999d073c7e468ce5e580 (patch) | |
tree | 01ba11d20ddb307fae6520a42c84c1780aea228a /rogue | |
parent | b6fb041013522a409f29431dea8df284f29a0976 (diff) | |
download | bsdgames-darwin-87a663b7aa0b74d11867999d073c7e468ce5e580.tar.gz bsdgames-darwin-87a663b7aa0b74d11867999d073c7e468ce5e580.tar.zst bsdgames-darwin-87a663b7aa0b74d11867999d073c7e468ce5e580.zip |
Fix '=' for '==' in a test. From NAKAJIMA Yoshihiro in PR 42177.
Diffstat (limited to 'rogue')
-rw-r--r-- | rogue/monster.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |