From bf0652d3fce57024fe56f75d43898a261fea7570 Mon Sep 17 00:00:00 2001 From: darkvater Date: Mon, 6 Sep 2004 18:15:13 +0000 Subject: (svn r165) -Feature: Option to sort vehicles in vehicle-list window by different criteria. Total independent sort for all types and players. Periodic resort of list every 10 TTD days. Thank you for your graphical inspiration follow and buxo (since none of you provided any code). -Fix: Sorter icon pointing down 'v' sorts in every window lowest value first, '^' highest value first -CodeChange: move Dropdownlist from settings_gui.c to widget.c. More in place there. --- unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unix.c') diff --git a/unix.c b/unix.c index 081c2d82a..90663f72d 100644 --- a/unix.c +++ b/unix.c @@ -43,7 +43,7 @@ int compare_FiosItems (const void *a, const void *b) { int r; if (_savegame_sort_order < 2) // sort by date - r = da->mtime < db->mtime ? 1 : -1; + r = da->mtime < db->mtime ? -1 : 1; else r = strcmp(da->title[0] ? da->title : da->name, db->title[0] ? db->title : db->name); -- cgit v1.2.3-54-g00ecf