diff options
Diffstat (limited to 'OpenSim.RegionServer')
-rw-r--r-- | OpenSim.RegionServer/OpenSimMain.cs | 10 | ||||
-rw-r--r-- | OpenSim.RegionServer/SimClient.cs | 1 |
2 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim.RegionServer/OpenSimMain.cs b/OpenSim.RegionServer/OpenSimMain.cs index ea6088b..48eff1b 100644 --- a/OpenSim.RegionServer/OpenSimMain.cs +++ b/OpenSim.RegionServer/OpenSimMain.cs | |||
@@ -83,6 +83,7 @@ namespace OpenSim | |||
83 | public bool m_sandbox = false; | 83 | public bool m_sandbox = false; |
84 | public bool m_loginserver; | 84 | public bool m_loginserver; |
85 | public bool user_accounts = false; | 85 | public bool user_accounts = false; |
86 | public bool gridLocalAsset = false; | ||
86 | 87 | ||
87 | protected ConsoleBase m_console; | 88 | protected ConsoleBase m_console; |
88 | 89 | ||
@@ -126,7 +127,14 @@ namespace OpenSim | |||
126 | } | 127 | } |
127 | else | 128 | else |
128 | { | 129 | { |
129 | GridServers.AssetDll = "OpenSim.GridInterfaces.Remote.dll"; | 130 | if (this.gridLocalAsset) |
131 | { | ||
132 | GridServers.AssetDll = "OpenSim.GridInterfaces.Local.dll"; | ||
133 | } | ||
134 | else | ||
135 | { | ||
136 | GridServers.AssetDll = "OpenSim.GridInterfaces.Remote.dll"; | ||
137 | } | ||
130 | GridServers.GridDll = "OpenSim.GridInterfaces.Remote.dll"; | 138 | GridServers.GridDll = "OpenSim.GridInterfaces.Remote.dll"; |
131 | 139 | ||
132 | m_console.WriteLine("Starting in Grid mode"); | 140 | m_console.WriteLine("Starting in Grid mode"); |
diff --git a/OpenSim.RegionServer/SimClient.cs b/OpenSim.RegionServer/SimClient.cs index 0c90dcb..cc85b67 100644 --- a/OpenSim.RegionServer/SimClient.cs +++ b/OpenSim.RegionServer/SimClient.cs | |||
@@ -201,7 +201,6 @@ namespace OpenSim | |||
201 | NewSimPack.Info.LookAt = new LLVector3(0.99f, 0.042f, 0); // copied from Avatar.cs - SHOULD BE DYNAMIC!!!!!!!!!! | 201 | NewSimPack.Info.LookAt = new LLVector3(0.99f, 0.042f, 0); // copied from Avatar.cs - SHOULD BE DYNAMIC!!!!!!!!!! |
202 | NewSimPack.RegionData = new libsecondlife.Packets.CrossedRegionPacket.RegionDataBlock(); | 202 | NewSimPack.RegionData = new libsecondlife.Packets.CrossedRegionPacket.RegionDataBlock(); |
203 | NewSimPack.RegionData.RegionHandle = Helpers.UIntsToLong((uint)(Convert.ToInt32(borderingSim["region_locx"]) * 256), (uint)(Convert.ToInt32(borderingSim["region_locy"]) * 256)); | 203 | NewSimPack.RegionData.RegionHandle = Helpers.UIntsToLong((uint)(Convert.ToInt32(borderingSim["region_locx"]) * 256), (uint)(Convert.ToInt32(borderingSim["region_locy"]) * 256)); |
204 | |||
205 | System.Net.IPAddress neighbourIP = System.Net.IPAddress.Parse((string)borderingSim["sim_ip"]); | 204 | System.Net.IPAddress neighbourIP = System.Net.IPAddress.Parse((string)borderingSim["sim_ip"]); |
206 | byte[] byteIP = neighbourIP.GetAddressBytes(); | 205 | byte[] byteIP = neighbourIP.GetAddressBytes(); |
207 | NewSimPack.RegionData.SimIP = (uint)byteIP[3] << 24; | 206 | NewSimPack.RegionData.SimIP = (uint)byteIP[3] << 24; |