Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/atc Bug fix: in a game with 26 planes, the last one to...



details:   https://anonhg.NetBSD.org/src/rev/1ba279db499c
branches:  trunk
changeset: 762074:1ba279db499c
user:      is <is%NetBSD.org@localhost>
date:      Tue Feb 15 08:25:25 2011 +0000

description:
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:

 games/atc/update.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c069af8023f6 -r 1ba279db499c games/atc/update.c
--- a/games/atc/update.c        Tue Feb 15 04:06:43 2011 +0000
+++ b/games/atc/update.c        Tue Feb 15 08:25:25 2011 +0000
@@ -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 @@
                                        break;
                                }
        } while (found && last_plane != start_plane);
-       if (last_plane == start_plane)
+       if (found)
                return (-1);
        return (last_plane);
 }



Home | Main Index | Thread Index | Old Index