|
|
|
@ -90,7 +90,7 @@ struct SignList {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** Filter sign list by sign name */
|
|
|
|
|
static bool CDECL SignNameFilter(const Sign * const *a, StringFilter &filter)
|
|
|
|
|
static bool SignNameFilter(const Sign * const *a, StringFilter &filter)
|
|
|
|
|
{
|
|
|
|
|
/* Same performance benefit as above for sorting. */
|
|
|
|
|
const char *a_name = (*a)->name.empty() ? SignList::default_name : (*a)->name.c_str();
|
|
|
|
@ -101,14 +101,14 @@ struct SignList {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** Filter sign list excluding OWNER_DEITY */
|
|
|
|
|
static bool CDECL OwnerDeityFilter(const Sign * const *a, StringFilter &filter)
|
|
|
|
|
static bool OwnerDeityFilter(const Sign * const *a, StringFilter &filter)
|
|
|
|
|
{
|
|
|
|
|
/* You should never be able to edit signs of owner DEITY */
|
|
|
|
|
return (*a)->owner != OWNER_DEITY;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** Filter sign list by owner */
|
|
|
|
|
static bool CDECL OwnerVisibilityFilter(const Sign * const *a, StringFilter &filter)
|
|
|
|
|
static bool OwnerVisibilityFilter(const Sign * const *a, StringFilter &filter)
|
|
|
|
|
{
|
|
|
|
|
assert(!HasBit(_display_opt, DO_SHOW_COMPETITOR_SIGNS));
|
|
|
|
|
/* Hide sign if non-own signs are hidden in the viewport */
|
|
|
|
|