'sortloot' revamp
Change the sortloot option to use qsort() instead of naive insertion sort. After sorting, it reorders the linked list into the sorted order, so might have some subtle change(s) in behavior since that wasn't done before. pickup.c includes some formatting cleanup. modified: include/extern.h, hack.h, obj.h src/do.c, do_wear.c, end.c, invent.c, pickup.c
This commit is contained in:
@@ -40,12 +40,13 @@ struct obj {
|
||||
unsigned owt;
|
||||
long quan; /* number of items */
|
||||
|
||||
schar spe; /* quality of weapon, armor or ring (+ or -)
|
||||
number of charges for wand ( >= -1 )
|
||||
marks your eggs, tin variety and spinach tins
|
||||
royal coffers for a court ( == 2)
|
||||
tells which fruit a fruit is
|
||||
special for uball and amulet
|
||||
schar spe; /* quality of weapon, armor or ring (+ or -);
|
||||
number of charges for wand or charged tool ( >= -1 );
|
||||
marks your eggs, tin variety and spinach tins;
|
||||
Schroedinger's Box (1) or royal coffers for a court (2);
|
||||
tells which fruit a fruit is;
|
||||
special for uball and amulet;
|
||||
scroll of mail (normal==0, bones or wishing==1, written==2);
|
||||
historic and gender for statues */
|
||||
#define STATUE_HISTORIC 0x01
|
||||
#define STATUE_MALE 0x02
|
||||
|
||||
Reference in New Issue
Block a user