mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
some cosmetics, like npcs down eat terrain
This commit is contained in:
@@ -152,41 +152,19 @@ namespace OpenSim.Region.CoreModules.World.Terrain
|
||||
|
||||
protected string parseFloat(String s, out float f)
|
||||
{
|
||||
string result;
|
||||
float d;
|
||||
if (float.TryParse(s, out d))
|
||||
{
|
||||
try
|
||||
{
|
||||
f = (float)d;
|
||||
result = String.Empty;
|
||||
}
|
||||
catch(InvalidCastException)
|
||||
{
|
||||
result = String.Format("{0} is invalid", s);
|
||||
f = -1.0f;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
f = -1.0f;
|
||||
result = String.Format("{0} is invalid", s);
|
||||
}
|
||||
return result;
|
||||
if (float.TryParse(s, out f))
|
||||
return string.Empty;
|
||||
|
||||
f = -1.0f;
|
||||
return string.Format("{0} is invalid", s);
|
||||
}
|
||||
|
||||
protected string parseInt(String s, out int i)
|
||||
{
|
||||
string result;
|
||||
if (Int32.TryParse(s, out i))
|
||||
{
|
||||
result = String.Empty;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = String.Format("{0} is invalid", s);
|
||||
}
|
||||
return result;
|
||||
return string.Empty;
|
||||
|
||||
return string.Format("{0} is invalid", s);
|
||||
}
|
||||
|
||||
protected void applyModification(ITerrainChannel map, TerrainModifierData data)
|
||||
|
||||
@@ -1091,6 +1091,8 @@ namespace OpenSim.Region.CoreModules.World.Terrain
|
||||
{
|
||||
m_scene.ForEachScenePresence(presence =>
|
||||
{
|
||||
if(presence.IsNPC)
|
||||
return;
|
||||
if (!m_perClientPatchUpdates.TryGetValue(presence.UUID, out PatchUpdates thisClientUpdates))
|
||||
{
|
||||
// There is a ScenePresence without a send patch map. Create one. should not happen
|
||||
|
||||
Reference in New Issue
Block a user