summaryrefslogtreecommitdiffstats
path: root/atc
diff options
context:
space:
mode:
authoris <is@NetBSD.org>2011-02-15 08:25:25 +0000
committeris <is@NetBSD.org>2011-02-15 08:25:25 +0000
commit94d9f7fcc59fe7e9cd723a48abcf4564575862cc (patch)
tree3028b15661e941116a14dd1a2cf3317cde557655 /atc
parent1b28331bd17c526fce56bb58e9b2911b4fb6a503 (diff)
downloadbsdgames-darwin-94d9f7fcc59fe7e9cd723a48abcf4564575862cc.tar.gz
bsdgames-darwin-94d9f7fcc59fe7e9cd723a48abcf4564575862cc.tar.zst
bsdgames-darwin-94d9f7fcc59fe7e9cd723a48abcf4564575862cc.zip
Bug fix: in a game with 26 planes, the last one to be allocated wouldn't
be allocated if it was the only eligible one. From Jonathan David Amery via Debian Bug report 214626.
Diffstat (limited to 'atc')
-rw-r--r--atc/update.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/atc/update.c b/atc/update.c
index c3741fb7..197077ff 100644
--- a/atc/update.c
+++ b/atc/update.c
@@ -1,4 +1,4 @@
-/* $NetBSD: update.c,v 1.21 2009/08/12 04:48:03 dholland Exp $ */
+/* $NetBSD: update.c,v 1.22 2011/02/15 08:25:25 is Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -46,7 +46,7 @@
#if 0
static char sccsid[] = "@(#)update.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: update.c,v 1.21 2009/08/12 04:48:03 dholland Exp $");
+__RCSID("$NetBSD: update.c,v 1.22 2011/02/15 08:25:25 is Exp $");
#endif
#endif /* not lint */
@@ -302,7 +302,7 @@ next_plane(void)
break;
}
} while (found && last_plane != start_plane);
- if (last_plane == start_plane)
+ if (found)
return (-1);
return (last_plane);
}