]> skyeroc.xyz Git - dgamelaunch/commitdiff
Reverse the watchers column sort order.
authorPasi Kallinen <paxed@alt.org>
Sat, 1 May 2010 19:02:10 +0000 (19:02 +0000)
committerPasi Kallinen <paxed@alt.org>
Sat, 1 May 2010 19:02:10 +0000 (19:02 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@539 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgl-common.c

index c434397e3c88d5f2e500c0209c34710c8d819f02..62bb74b49780f1fdb78e011ef6480c8f0aecd974 100644 (file)
@@ -444,7 +444,7 @@ sort_game_watchers(const void *g1, const void *g2)
 {
     const struct dg_game *game1 = *(const struct dg_game **)g1;
     const struct dg_game *game2 = *(const struct dg_game **)g2;
-    int i = dglsign(game1->nwatchers - game2->nwatchers);
+    int i = dglsign(game2->nwatchers - game1->nwatchers);
     if (!i)
        i = strcmp(game1->time, game2->time);
     if (!i)