From 4276a352bcef890f3487ff701fba2de617d2c3de Mon Sep 17 00:00:00 2001 From: MW Date: Fri, 24 Aug 2007 16:17:57 +0000 Subject: Small bit of refactoring to the startup command script code (moved it into a separate method), so that I could add a new CLI command of "command-script ", so that as well as the startup command script still being processed on startup. A user can create other command scripts and use the single command ("command-script ") to run them at any time. Could be useful for trying out various configurations etc. --- OpenSim/Region/Environment/LandManagement/LandManager.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/LandManagement/LandManager.cs b/OpenSim/Region/Environment/LandManagement/LandManager.cs index 2f345f4..1ed0642 100644 --- a/OpenSim/Region/Environment/LandManagement/LandManager.cs +++ b/OpenSim/Region/Environment/LandManagement/LandManager.cs @@ -207,8 +207,7 @@ namespace OpenSim.Region.Environment.LandManagement if (x > 63 || y > 63 || x < 0 || y < 0) { - return null; - //throw new Exception("Error: Parcel not found at point " + x + ", " + y); + throw new Exception("Error: Parcel not found at point " + x + ", " + y); } else { @@ -221,8 +220,7 @@ namespace OpenSim.Region.Environment.LandManagement { if (x > 256 || y > 256 || x < 0 || y < 0) { - return null; - //throw new Exception("Error: Parcel not found at point " + x + ", " + y); + throw new Exception("Error: Parcel not found at point " + x + ", " + y); } else { -- cgit v1.1