From f3afa68a2af6ad5999e6efe3e4725cb17293108d Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Thu, 14 Feb 2008 12:16:33 +0000
Subject: * Made new Framework.Constants class, added RegionSize member. *
Converted all instances of "256" spotted to use RegionSize instead. Some
approximations used for border crossings (ie 255.9f) are still using that
value, but should be updated to use something based on RegionSize. * Moving
Terrain to a RegionModule, implemented ITerrainChannel and TerrainModule -
nonfunctional, but will be soon.
---
OpenSim/Framework/RegionHandle.cs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'OpenSim/Framework/RegionHandle.cs')
diff --git a/OpenSim/Framework/RegionHandle.cs b/OpenSim/Framework/RegionHandle.cs
index 440aaf6..9cfe53d 100644
--- a/OpenSim/Framework/RegionHandle.cs
+++ b/OpenSim/Framework/RegionHandle.cs
@@ -63,8 +63,8 @@ namespace OpenSim.Framework
uint ny = (uint) y;
// Multiply grid coords to get region coords
- nx *= 256;
- ny *= 256;
+ nx *= Constants.RegionSize;
+ ny *= Constants.RegionSize;
// Stuff the IP address in too
nx = (uint) a << 16;
@@ -80,7 +80,7 @@ namespace OpenSim.Framework
/// Grid Y Coordinate
public RegionHandle(uint x, uint y)
{
- handle = ((x*256) << 32) | (y*256);
+ handle = ((x * Constants.RegionSize) << 32) | (y * Constants.RegionSize);
}
///
--
cgit v1.1