4096 is used in various places as the maximum height of a region, refactoring to be a constant

This commit is contained in:
SignpostMarv
2012-09-06 10:54:45 +01:00
committed by Justin Clark-Casey (justincc)
parent df3914c7cd
commit 874bde366a
3 changed files with 4 additions and 3 deletions

View File

@@ -1948,7 +1948,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
pos.x > (Constants.RegionSize + 10) || // return FALSE if more than 10 meters into a east-adjacent region.
pos.y < -10.0 || // return FALSE if more than 10 meters into a south-adjacent region.
pos.y > (Constants.RegionSize + 10) || // return FALSE if more than 10 meters into a north-adjacent region.
pos.z > 4096 // return FALSE if altitude than 4096m
pos.z > Constants.RegionHeight // return FALSE if altitude than 4096m
)
)
{