From 022337356809de1e6656ce95a4c74028ac0836a2 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Fri, 30 Aug 2013 00:38:40 -0400 Subject: Added headers to dist file --- hslist.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hslist.cpp') diff --git a/hslist.cpp b/hslist.cpp index 9a12dac..ed7f3ca 100644 --- a/hslist.cpp +++ b/hslist.cpp @@ -8,6 +8,7 @@ #include "titlestate.h" #include "gamestate.h" +// We want to be able to sort Highscore objects in descending score order struct hslist_comp { bool operator() (Highscore* lhs, Highscore* rhs) const { @@ -15,6 +16,7 @@ struct hslist_comp { } } hslist_comp_i; +// resetRanks : sets the rank of all Highscore objects in a hslist_t to their (one-based) index in the list void resetRanks(hslist_t in) { int i=1; -- cgit 1.4.1