diff options
Diffstat (limited to 'hslist.cpp')
-rw-r--r-- | hslist.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hslist.cpp b/hslist.cpp index 9a12dac..ed7f3ca 100644 --- a/hslist.cpp +++ b/hslist.cpp | |||
@@ -8,6 +8,7 @@ | |||
8 | #include "titlestate.h" | 8 | #include "titlestate.h" |
9 | #include "gamestate.h" | 9 | #include "gamestate.h" |
10 | 10 | ||
11 | // We want to be able to sort Highscore objects in descending score order | ||
11 | struct hslist_comp { | 12 | struct hslist_comp { |
12 | bool operator() (Highscore* lhs, Highscore* rhs) const | 13 | bool operator() (Highscore* lhs, Highscore* rhs) const |
13 | { | 14 | { |
@@ -15,6 +16,7 @@ struct hslist_comp { | |||
15 | } | 16 | } |
16 | } hslist_comp_i; | 17 | } hslist_comp_i; |
17 | 18 | ||
19 | // resetRanks : sets the rank of all Highscore objects in a hslist_t to their (one-based) index in the list | ||
18 | void resetRanks(hslist_t in) | 20 | void resetRanks(hslist_t in) |
19 | { | 21 | { |
20 | int i=1; | 22 | int i=1; |