Change the max value of the bytes in tests to 127. MySQL bytes are signed
by default0.6.1-post-fixes
parent
fdf5f55a5b
commit
f1f4b16bc8
|
@ -241,11 +241,11 @@ namespace OpenSim.Data.Tests
|
||||||
string sitname = "SitName";
|
string sitname = "SitName";
|
||||||
string touchname = "TouchName";
|
string touchname = "TouchName";
|
||||||
int linknum = random.Next();
|
int linknum = random.Next();
|
||||||
byte clickaction = (byte) random.Next(255);
|
byte clickaction = (byte) random.Next(127);
|
||||||
PrimitiveBaseShape pbshap = new PrimitiveBaseShape();
|
PrimitiveBaseShape pbshap = new PrimitiveBaseShape();
|
||||||
pbshap = PrimitiveBaseShape.Default;
|
pbshap = PrimitiveBaseShape.Default;
|
||||||
Vector3 scale = new Vector3(random.Next(),random.Next(),random.Next());
|
Vector3 scale = new Vector3(random.Next(),random.Next(),random.Next());
|
||||||
byte updatef = (byte) random.Next(255);
|
byte updatef = (byte) random.Next(127);
|
||||||
|
|
||||||
SceneObjectPart sop = new SceneObjectPart();
|
SceneObjectPart sop = new SceneObjectPart();
|
||||||
sop.RegionHandle = regionh;
|
sop.RegionHandle = regionh;
|
||||||
|
@ -402,11 +402,11 @@ namespace OpenSim.Data.Tests
|
||||||
string sitname = RandomName();
|
string sitname = RandomName();
|
||||||
string touchname = RandomName();
|
string touchname = RandomName();
|
||||||
int linknum = random.Next();
|
int linknum = random.Next();
|
||||||
byte clickaction = (byte) random.Next(255);
|
byte clickaction = (byte) random.Next(127);
|
||||||
PrimitiveBaseShape pbshap = new PrimitiveBaseShape();
|
PrimitiveBaseShape pbshap = new PrimitiveBaseShape();
|
||||||
pbshap = PrimitiveBaseShape.Default;
|
pbshap = PrimitiveBaseShape.Default;
|
||||||
Vector3 scale = new Vector3(random.Next(),random.Next(),random.Next());
|
Vector3 scale = new Vector3(random.Next(),random.Next(),random.Next());
|
||||||
byte updatef = (byte) random.Next(255);
|
byte updatef = (byte) random.Next(127);
|
||||||
|
|
||||||
// Updates the region with new values
|
// Updates the region with new values
|
||||||
SceneObjectGroup sog2 = FindSOG("Adam West", region3);
|
SceneObjectGroup sog2 = FindSOG("Adam West", region3);
|
||||||
|
@ -611,7 +611,7 @@ namespace OpenSim.Data.Tests
|
||||||
i.GroupOwned = groupown;
|
i.GroupOwned = groupown;
|
||||||
int saleprice = random.Next();
|
int saleprice = random.Next();
|
||||||
i.SalePrice = saleprice;
|
i.SalePrice = saleprice;
|
||||||
byte saletype = (byte) random.Next(255);
|
byte saletype = (byte) random.Next(127);
|
||||||
i.SaleType = saletype;
|
i.SaleType = saletype;
|
||||||
uint flags = (uint) random.Next();
|
uint flags = (uint) random.Next();
|
||||||
i.Flags = flags;
|
i.Flags = flags;
|
||||||
|
|
Loading…
Reference in New Issue