OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
9314ad9
)
Merge branch 'quest-sort-by-level'
author
Habu
<habu@users.sourceforge.jp>
Sun, 17 Sep 2017 12:44:39 +0000
(21:44 +0900)
committer
Habu
<habu@users.sourceforge.jp>
Sun, 17 Sep 2017 12:44:39 +0000
(21:44 +0900)
* quest-sort-by-level:
クエスト達成時のプレイ時間が同じ場合、クエストレベルでソートする
src/cmd4.c
patch
|
blob
|
history
diff --git
a/src/cmd4.c
b/src/cmd4.c
index
eb8707c
..
6e3d82a
100644
(file)
--- a/
src/cmd4.c
+++ b/
src/cmd4.c
@@
-8319,7
+8319,9
@@
bool ang_sort_comp_quest_num(vptr u, vptr v, int a, int b)
/* Unused */
(void)v;
- return (qa->comptime <= qb->comptime);
+ return (qa->comptime != qb->comptime) ?
+ (qa->comptime < qb->comptime) :
+ (qa->level <= qb->level);
}
void ang_sort_swap_quest_num(vptr u, vptr v, int a, int b)