Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2001:
[Freeciv-Dev] ten units bug (PR#826)
Home

[Freeciv-Dev] ten units bug (PR#826)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] ten units bug (PR#826)
From: dspeyer@xxxxxxxxxxxxxxxxxxxxx
Date: Sun, 1 Jul 2001 19:09:05 -0700 (PDT)

Full_Name: Daniel Speyer
Version: 1.12.0 Beta
Distribution: Built from source
Client: Gtk+
OS: GNU/Linux -- Mandrake 8.0
Submission from: (NULL) (24.2.150.207)


If you have precisely 10 units in a city, the scroll right button will become
active, even though there's nothing to scroll to.  I think this should fix it

1637c1637
<   size=plist->list.nelements/NUM_UNITS_SHOWN;
---
>   size=(plist->list.nelements-1)/NUM_UNITS_SHOWN;
1709c1709
<   size=plist->list.nelements/NUM_UNITS_SHOWN;
---
>   size=(plist->list.nelements-1)/NUM_UNITS_SHOWN;

but I haven't done thorough testing.

--Daniel Speyer
"May the /src be with you, always"





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] ten units bug (PR#826), dspeyer <=