[Bug 268248] games/bsdgames: atc: fix plane allocation with only one remaining slot

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 08 Dec 2022 16:39:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268248

            Bug ID: 268248
           Summary: games/bsdgames: atc: fix plane allocation with only
                    one remaining slot
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: m.ne@gmx.net
                CC: jockl@pianojockl.org
                CC: jockl@pianojockl.org
             Flags: maintainer-feedback?(jockl@pianojockl.org)
 Attachment #238637 maintainer-approval?
             Flags:

Created attachment 238637
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=238637&action=edit
bugfix

In a game with 26 planes, the last one to be allocated wouldn't be allocated if
it was the only eligible one.

This was fixed almost 12 years ago in NetBSD (see
http://cvsweb.netbsd.org/bsdweb.cgi/src/games/atc/update.c?only_with_tag=MAIN#rev1.22)

The PORTREVISION bump might be somewhat excessive, but arguably the behaviour
does change...

-- 
You are receiving this mail because:
You are the assignee for the bug.