OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e671ae
)
クエスト達成時のプレイ時間が同じ場合、クエストレベルでソートする
author
Habu
<habu@users.sourceforge.jp>
Sun, 10 Sep 2017 02:01:10 +0000
(11:01 +0900)
committer
Habu
<habu@users.sourceforge.jp>
Sun, 10 Sep 2017 02:01:10 +0000
(11:01 +0900)
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)