URL: <http://gna.org/patch/?6015>
Summary: Sorting by diplomatic state using appropriate comparison function (fix #23420) Project: Freeciv Submitted by: None Submitted on: Sat 18 Apr 2015 09:18:05 UTC Category: client Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: s...@entless.org Open/Closed: Open Discussion Lock: Any Planned Release: _______________________________________________________ Details: This patch adds a comparison function for diplomatic states that fits the semantics, i.e. allows for sorting by how “close” players are in the players dialog. I usually like to keep my player list sorted by diplomatic state, and it has always bothered me that this used alphabetic sorting of the strings, which led to nonsensical ordering (e.g. 'Team > Ceasefire > Alliance' or 'Ceasefire (9) > Ceasefire (10) > Ceasefire (1)'). This is a fix for bug #23420, but since this is my first attempt at contributing to this great project, I’m not sure whether I should have just commented there; I hope it’s okay this way. Hauke Henningsen _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Sat 18 Apr 2015 09:18:05 UTC Name: diplstate_sort.patch Size: 3kB By: None <http://gna.org/patch/download.php?file_id=24269> _______________________________________________________ Reply to this item at: <http://gna.org/patch/?6015> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev