diff options
author | Sean Dague | 2008-02-18 15:34:03 +0000 |
---|---|---|
committer | Sean Dague | 2008-02-18 15:34:03 +0000 |
commit | 28c808446d28841093f729abae311e2c5c826839 (patch) | |
tree | 1878b57939a2c3a5a577ef91d12b64b86f83e58b | |
parent | Attempt to fix casting issue introduced by RegionSize constant. I think this (diff) | |
download | opensim-SC-28c808446d28841093f729abae311e2c5c826839.zip opensim-SC-28c808446d28841093f729abae311e2c5c826839.tar.gz opensim-SC-28c808446d28841093f729abae311e2c5c826839.tar.bz2 opensim-SC-28c808446d28841093f729abae311e2c5c826839.tar.xz |
a new attempt at converting to the right types
-rw-r--r-- | OpenSim/Region/Environment/LandManagement/LandManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/LandManagement/LandManager.cs b/OpenSim/Region/Environment/LandManagement/LandManager.cs index af86c73..47201f3 100644 --- a/OpenSim/Region/Environment/LandManagement/LandManager.cs +++ b/OpenSim/Region/Environment/LandManagement/LandManager.cs | |||
@@ -281,7 +281,7 @@ namespace OpenSim.Region.Environment.LandManagement | |||
281 | 281 | ||
282 | public Land getLandObject(int x, int y) | 282 | public Land getLandObject(int x, int y) |
283 | { | 283 | { |
284 | if (x >= (int)Constants.RegionSize || y >= (int)Constants.RegionSize || x < 0 || y < 0) | 284 | if (x >= Convert.ToInt32(Constants.RegionSize) || y >= Convert.ToInt32(Constants.RegionSize) || x < 0 || y < 0) |
285 | { | 285 | { |
286 | // These exceptions here will cause a lot of complaints from the users specifically because | 286 | // These exceptions here will cause a lot of complaints from the users specifically because |
287 | // they happen every time at border crossings | 287 | // they happen every time at border crossings |