diff options
Diffstat (limited to 'linden/indra/llcommon/lldefs.h')
-rw-r--r-- | linden/indra/llcommon/lldefs.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/linden/indra/llcommon/lldefs.h b/linden/indra/llcommon/lldefs.h index a3651ff..25f4e73 100644 --- a/linden/indra/llcommon/lldefs.h +++ b/linden/indra/llcommon/lldefs.h | |||
@@ -55,13 +55,15 @@ const U32 SOUTHWEST = 6; | |||
55 | const U32 SOUTHEAST = 7; | 55 | const U32 SOUTHEAST = 7; |
56 | const U32 MIDDLE = 8; | 56 | const U32 MIDDLE = 8; |
57 | 57 | ||
58 | const U8 LL_SOUND_FLAG_NONE = 0x00; | 58 | const U8 EAST_MASK = 0x1<<EAST; |
59 | const U8 LL_SOUND_FLAG_LOOP = 0x01; | 59 | const U8 NORTH_MASK = 0x1<<NORTH; |
60 | const U8 LL_SOUND_FLAG_SYNC_MASTER = 0x02; | 60 | const U8 WEST_MASK = 0x1<<WEST; |
61 | const U8 LL_SOUND_FLAG_SYNC_SLAVE = 0x04; | 61 | const U8 SOUTH_MASK = 0x1<<SOUTH; |
62 | const U8 LL_SOUND_FLAG_SYNC_PENDING = 0x08; | 62 | |
63 | const U8 LL_SOUND_FLAG_SYNC_MASK = LL_SOUND_FLAG_SYNC_MASTER | LL_SOUND_FLAG_SYNC_SLAVE | LL_SOUND_FLAG_SYNC_PENDING; | 63 | const U8 NORTHEAST_MASK = NORTH_MASK | EAST_MASK; |
64 | const U8 LL_SOUND_FLAG_QUEUE = 0x10; | 64 | const U8 NORTHWEST_MASK = NORTH_MASK | WEST_MASK; |
65 | const U8 SOUTHWEST_MASK = SOUTH_MASK | WEST_MASK; | ||
66 | const U8 SOUTHEAST_MASK = SOUTH_MASK | EAST_MASK; | ||
65 | 67 | ||
66 | const U32 gDirOpposite[8] = {2, 3, 0, 1, 6, 7, 4, 5}; | 68 | const U32 gDirOpposite[8] = {2, 3, 0, 1, 6, 7, 4, 5}; |
67 | const U32 gDirAdjacent[8][2] = { | 69 | const U32 gDirAdjacent[8][2] = { |
@@ -87,15 +89,6 @@ const S32 gDirAxes[8][2] = { | |||
87 | { 1,-1}, // se | 89 | { 1,-1}, // se |
88 | }; | 90 | }; |
89 | 91 | ||
90 | const U8 EAST_MASK = 1; | ||
91 | const U8 NORTH_MASK = 2; | ||
92 | const U8 WEST_MASK = 4; | ||
93 | const U8 SOUTH_MASK = 8; | ||
94 | const U8 NORTHEAST_MASK = NORTH_MASK | EAST_MASK; | ||
95 | const U8 NORTHWEST_MASK = NORTH_MASK | WEST_MASK; | ||
96 | const U8 SOUTHWEST_MASK = SOUTH_MASK | WEST_MASK; | ||
97 | const U8 SOUTHEAST_MASK = SOUTH_MASK | EAST_MASK; | ||
98 | |||
99 | const S32 gDirMasks[8] = { | 92 | const S32 gDirMasks[8] = { |
100 | EAST_MASK, | 93 | EAST_MASK, |
101 | NORTH_MASK, | 94 | NORTH_MASK, |
@@ -133,6 +126,14 @@ const U32 RIGHT_SIDE = 4; | |||
133 | const U32 TOP_SIDE = 5; | 126 | const U32 TOP_SIDE = 5; |
134 | const U32 BOTTOM_SIDE = 6; | 127 | const U32 BOTTOM_SIDE = 6; |
135 | 128 | ||
129 | const U8 LL_SOUND_FLAG_NONE = 0x0; | ||
130 | const U8 LL_SOUND_FLAG_LOOP = 1<<0; | ||
131 | const U8 LL_SOUND_FLAG_SYNC_MASTER = 1<<1; | ||
132 | const U8 LL_SOUND_FLAG_SYNC_SLAVE = 1<<2; | ||
133 | const U8 LL_SOUND_FLAG_SYNC_PENDING = 1<<3; | ||
134 | const U8 LL_SOUND_FLAG_QUEUE = 1<<4; | ||
135 | const U8 LL_SOUND_FLAG_STOP = 1<<5; | ||
136 | const U8 LL_SOUND_FLAG_SYNC_MASK = LL_SOUND_FLAG_SYNC_MASTER | LL_SOUND_FLAG_SYNC_SLAVE | LL_SOUND_FLAG_SYNC_PENDING; | ||
136 | 137 | ||
137 | // | 138 | // |
138 | // *NOTE: These values may be used as hard-coded numbers in scanf() variants. | 139 | // *NOTE: These values may be used as hard-coded numbers in scanf() variants. |