mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Fix code to check for no spawn points. Possibly a merge artefact?
This commit is contained in:
@@ -4046,6 +4046,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
case "random":
|
||||
|
||||
if (spawnPoints.Length == 0)
|
||||
return;
|
||||
do
|
||||
{
|
||||
index = Util.RandomClass.Next(spawnPoints.Length - 1);
|
||||
@@ -4057,8 +4059,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// SpawnPoint sp = spawnPoints[index];
|
||||
|
||||
ILandObject land = m_scene.LandChannel.GetLandObject(spawnPosition.X, spawnPosition.Y);
|
||||
if (spawnPoints.Length == 0)
|
||||
return; if (land == null || land.IsEitherBannedOrRestricted(UUID))
|
||||
|
||||
if (land == null || land.IsEitherBannedOrRestricted(UUID))
|
||||
selected = false;
|
||||
else
|
||||
selected = true;
|
||||
|
||||
Reference in New Issue
Block a user