mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Very Preliminary border crossing added to sugilite. (Note: Sugilite doesn't have any backend ogs communication support yet so everything is Sandbox mode only )
This commit is contained in:
@@ -120,22 +120,22 @@ namespace OpenSim.Physics.BasicPhysicsPlugin
|
||||
}
|
||||
else
|
||||
{
|
||||
if (actor.Position.Y < -1)
|
||||
if (actor.Position.Y < 0)
|
||||
{
|
||||
actor.Position.Y = -1;
|
||||
actor.Position.Y = 0;
|
||||
}
|
||||
else if (actor.Position.Y > 257)
|
||||
else if (actor.Position.Y > 256)
|
||||
{
|
||||
actor.Position.Y = 257;
|
||||
actor.Position.Y = 256;
|
||||
}
|
||||
|
||||
if (actor.Position.X < -1)
|
||||
if (actor.Position.X < 0)
|
||||
{
|
||||
actor.Position.X = -1;
|
||||
actor.Position.X = 0;
|
||||
}
|
||||
if (actor.Position.X > 257)
|
||||
if (actor.Position.X > 256)
|
||||
{
|
||||
actor.Position.X = 257;
|
||||
actor.Position.X = 256;
|
||||
}
|
||||
}
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user