From 1fb4f68676ed0afedf72126362d791aaffd5c251 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 24 Nov 2006 13:08:51 +0000 Subject: Sort save-game-list by descending order of experience. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@491 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index e4af037825..7f1b699ef8 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -4572,5 +4572,5 @@ std::string player::short_desc() const bool player::operator < (const player &p) const { - return (strcmp(your_name, p.your_name) < 0); + return (experience > p.experience); } -- cgit v1.2.3-54-g00ecf