diff options
author | Adam Frisby | 2008-01-15 02:09:55 +0000 |
---|---|---|
committer | Adam Frisby | 2008-01-15 02:09:55 +0000 |
commit | b25f9f322cdbcde7fd8c043137bf07992e5ef318 (patch) | |
tree | 7c1a5115b2849dfe388b825dd271271d347f9574 /OpenSim/Region/Environment/Scenes/Scene.cs | |
parent | Set svn:eol-style. (diff) | |
download | opensim-SC_OLD-b25f9f322cdbcde7fd8c043137bf07992e5ef318.zip opensim-SC_OLD-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.gz opensim-SC_OLD-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.bz2 opensim-SC_OLD-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.xz |
* Mother of all commits:
* Cleaned up copyright notices in AssemblyInfo.cs's
* Added Copyright headers to a bunch of files missing them
* Replaced several common string instances with a static constant to prevent reallocation of the same strings thousands of times. "" -> String.Empty is the first such candidate.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 575fe01..43486e8 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -389,7 +389,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
389 | m_restartTimer.Elapsed += new ElapsedEventHandler(RestartTimer_Elapsed); | 389 | m_restartTimer.Elapsed += new ElapsedEventHandler(RestartTimer_Elapsed); |
390 | MainLog.Instance.Error("REGION", "Restarting Region in " + (seconds/60) + " minutes"); | 390 | MainLog.Instance.Error("REGION", "Restarting Region in " + (seconds/60) + " minutes"); |
391 | m_restartTimer.Start(); | 391 | m_restartTimer.Start(); |
392 | SendRegionMessageFromEstateTools(LLUUID.Random(), LLUUID.Random(), "", RegionInfo.RegionName + ": Restarting in 2 Minutes"); | 392 | SendRegionMessageFromEstateTools(LLUUID.Random(), LLUUID.Random(), String.Empty, RegionInfo.RegionName + ": Restarting in 2 Minutes"); |
393 | //SendGeneralAlert(RegionInfo.RegionName + ": Restarting in 2 Minutes"); | 393 | //SendGeneralAlert(RegionInfo.RegionName + ": Restarting in 2 Minutes"); |
394 | } | 394 | } |
395 | } | 395 | } |
@@ -404,7 +404,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
404 | if (m_RestartTimerCounter <= m_incrementsof15seconds) | 404 | if (m_RestartTimerCounter <= m_incrementsof15seconds) |
405 | { | 405 | { |
406 | if (m_RestartTimerCounter == 4 || m_RestartTimerCounter == 6 || m_RestartTimerCounter == 7) | 406 | if (m_RestartTimerCounter == 4 || m_RestartTimerCounter == 6 || m_RestartTimerCounter == 7) |
407 | SendRegionMessageFromEstateTools(LLUUID.Random(), LLUUID.Random(), "", RegionInfo.RegionName + ": Restarting in " + | 407 | SendRegionMessageFromEstateTools(LLUUID.Random(), LLUUID.Random(), String.Empty, RegionInfo.RegionName + ": Restarting in " + |
408 | ((8 - m_RestartTimerCounter) * 15) + " seconds"); | 408 | ((8 - m_RestartTimerCounter) * 15) + " seconds"); |
409 | 409 | ||
410 | // SendGeneralAlert(RegionInfo.RegionName + ": Restarting in " + ((8 - m_RestartTimerCounter)*15) + | 410 | // SendGeneralAlert(RegionInfo.RegionName + ": Restarting in " + ((8 - m_RestartTimerCounter)*15) + |
@@ -1408,7 +1408,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1408 | { | 1408 | { |
1409 | if (regionHandle == m_regInfo.RegionHandle) | 1409 | if (regionHandle == m_regInfo.RegionHandle) |
1410 | { | 1410 | { |
1411 | if (agent.CapsPath != "") | 1411 | if (agent.CapsPath != String.Empty) |
1412 | { | 1412 | { |
1413 | Caps cap = | 1413 | Caps cap = |
1414 | new Caps(AssetCache, httpListener, m_regInfo.ExternalHostName, httpListener.Port, | 1414 | new Caps(AssetCache, httpListener, m_regInfo.ExternalHostName, httpListener.Port, |
@@ -2004,7 +2004,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2004 | 2004 | ||
2005 | private string CombineParams(string[] commandParams, int pos) | 2005 | private string CombineParams(string[] commandParams, int pos) |
2006 | { | 2006 | { |
2007 | string result = ""; | 2007 | string result = String.Empty; |
2008 | for (int i = pos; i < commandParams.Length; i++) | 2008 | for (int i = pos; i < commandParams.Length; i++) |
2009 | { | 2009 | { |
2010 | result += commandParams[i] + " "; | 2010 | result += commandParams[i] + " "; |
@@ -2253,7 +2253,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2253 | /// </summary> | 2253 | /// </summary> |
2254 | /// <param name="avatarID">AvatarID to lookup</param> | 2254 | /// <param name="avatarID">AvatarID to lookup</param> |
2255 | /// <returns></returns> | 2255 | /// <returns></returns> |
2256 | public bool PresenceChildStatus(LLUUID avatarID) | 2256 | public override bool PresenceChildStatus(LLUUID avatarID) |
2257 | { | 2257 | { |
2258 | ScenePresence cp = GetScenePresence(avatarID); | 2258 | ScenePresence cp = GetScenePresence(avatarID); |
2259 | return cp.IsChildAgent; | 2259 | return cp.IsChildAgent; |