From 14a66569486eeed58845d172dd456b0607a0e860 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Thu, 10 Jul 2008 13:55:01 +0000 Subject: Mantis#1541. Thank you kindly, Phrearch for a patch that: Solves Remote Admin create_region type Casting failure. --- OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/ApplicationPlugins') diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index 3f6869e..767b736 100644 --- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs +++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs @@ -393,8 +393,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController region.RegionID = regionID; region.RegionName = (string) requestData["region_name"]; - region.RegionLocX = Convert.ToUInt32((Int32) requestData["region_x"]); - region.RegionLocY = Convert.ToUInt32((Int32) requestData["region_y"]); + region.RegionLocX = Convert.ToUInt32(requestData["region_x"]); + region.RegionLocY = Convert.ToUInt32(requestData["region_y"]); // check for collisions: region name, region UUID, // region location @@ -416,7 +416,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController region.InternalEndPoint = new IPEndPoint(IPAddress.Parse((string) requestData["listen_ip"]), 0); - region.InternalEndPoint.Port = (Int32) requestData["listen_port"]; + region.InternalEndPoint.Port = Convert.ToInt32(requestData["listen_port"]); if (0 == region.InternalEndPoint.Port) throw new Exception("listen_port is 0"); if (m_app.SceneManager.TryGetScene(region.InternalEndPoint, out scene)) throw new Exception(String.Format("region internal IP {0} and port {1} already in use by region {2}, UUID {3}, <{4},{5}>", -- cgit v1.1