diff options
author | Dariusz Swiderski <dms@cvs.openbsd.org> | 2009-11-12 21:57:47 +0000 |
---|---|---|
committer | Dariusz Swiderski <dms@cvs.openbsd.org> | 2009-11-12 21:57:47 +0000 |
commit | 26df7ccb2c79eafe35036df4ec35a68030f4e23a (patch) | |
tree | d840eb7dac73c657e73beae90d1f304f821b96b2 /games | |
parent | 5df90014c2eec37166d8bc1e4e31dea275349294 (diff) |
fix comparison, from NetBSD PR/42177
ok miod@
Diffstat (limited to 'games')
-rw-r--r-- | games/rogue/monster.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/rogue/monster.c b/games/rogue/monster.c index 2258d901b7a..1ff93c4cd88 100644 --- a/games/rogue/monster.c +++ b/games/rogue/monster.c @@ -1,4 +1,4 @@ -/* $OpenBSD: monster.c,v 1.9 2009/10/27 23:59:26 deraadt Exp $ */ +/* $OpenBSD: monster.c,v 1.10 2009/11/12 21:57:46 dms Exp $ */ /* $NetBSD: monster.c,v 1.3 1995/04/22 10:27:45 cgd Exp $ */ /* @@ -672,7 +672,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; |