aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/lldefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llcommon/lldefs.h')
-rw-r--r--linden/indra/llcommon/lldefs.h33
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;
55const U32 SOUTHEAST = 7; 55const U32 SOUTHEAST = 7;
56const U32 MIDDLE = 8; 56const U32 MIDDLE = 8;
57 57
58const U8 LL_SOUND_FLAG_NONE = 0x00; 58const U8 EAST_MASK = 0x1<<EAST;
59const U8 LL_SOUND_FLAG_LOOP = 0x01; 59const U8 NORTH_MASK = 0x1<<NORTH;
60const U8 LL_SOUND_FLAG_SYNC_MASTER = 0x02; 60const U8 WEST_MASK = 0x1<<WEST;
61const U8 LL_SOUND_FLAG_SYNC_SLAVE = 0x04; 61const U8 SOUTH_MASK = 0x1<<SOUTH;
62const U8 LL_SOUND_FLAG_SYNC_PENDING = 0x08; 62
63const U8 LL_SOUND_FLAG_SYNC_MASK = LL_SOUND_FLAG_SYNC_MASTER | LL_SOUND_FLAG_SYNC_SLAVE | LL_SOUND_FLAG_SYNC_PENDING; 63const U8 NORTHEAST_MASK = NORTH_MASK | EAST_MASK;
64const U8 LL_SOUND_FLAG_QUEUE = 0x10; 64const U8 NORTHWEST_MASK = NORTH_MASK | WEST_MASK;
65const U8 SOUTHWEST_MASK = SOUTH_MASK | WEST_MASK;
66const U8 SOUTHEAST_MASK = SOUTH_MASK | EAST_MASK;
65 67
66const U32 gDirOpposite[8] = {2, 3, 0, 1, 6, 7, 4, 5}; 68const U32 gDirOpposite[8] = {2, 3, 0, 1, 6, 7, 4, 5};
67const U32 gDirAdjacent[8][2] = { 69const 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
90const U8 EAST_MASK = 1;
91const U8 NORTH_MASK = 2;
92const U8 WEST_MASK = 4;
93const U8 SOUTH_MASK = 8;
94const U8 NORTHEAST_MASK = NORTH_MASK | EAST_MASK;
95const U8 NORTHWEST_MASK = NORTH_MASK | WEST_MASK;
96const U8 SOUTHWEST_MASK = SOUTH_MASK | WEST_MASK;
97const U8 SOUTHEAST_MASK = SOUTH_MASK | EAST_MASK;
98
99const S32 gDirMasks[8] = { 92const S32 gDirMasks[8] = {
100 EAST_MASK, 93 EAST_MASK,
101 NORTH_MASK, 94 NORTH_MASK,
@@ -133,6 +126,14 @@ const U32 RIGHT_SIDE = 4;
133const U32 TOP_SIDE = 5; 126const U32 TOP_SIDE = 5;
134const U32 BOTTOM_SIDE = 6; 127const U32 BOTTOM_SIDE = 6;
135 128
129const U8 LL_SOUND_FLAG_NONE = 0x0;
130const U8 LL_SOUND_FLAG_LOOP = 1<<0;
131const U8 LL_SOUND_FLAG_SYNC_MASTER = 1<<1;
132const U8 LL_SOUND_FLAG_SYNC_SLAVE = 1<<2;
133const U8 LL_SOUND_FLAG_SYNC_PENDING = 1<<3;
134const U8 LL_SOUND_FLAG_QUEUE = 1<<4;
135const U8 LL_SOUND_FLAG_STOP = 1<<5;
136const 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.