(svn r4822) -Feature: Station List View can now be sorted and filtered (by waiting cargo type and facilities)

This commit is contained in:
celestar
2006-05-11 10:33:58 +00:00
parent 151e79231d
commit 48d991b819
6 changed files with 354 additions and 90 deletions

View File

@@ -117,6 +117,9 @@ static inline int KillFirstBit2x64(int value)
}
}
/** returns true if value a has only one bit set to 1 */
#define HAS_SINGLE_BIT(a) ( ((a) & ((a) - 1)) == 0)
/* [min,max), strictly less than */
#define IS_BYTE_INSIDE(a,min,max) ((byte)((a)-(min)) < (byte)((max)-(min)))
#define IS_INT_INSIDE(a,min,max) ((uint)((a)-(min)) < (uint)((max)-(min)))