diff options
author | SignpostMarv | 2012-08-26 22:52:33 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-08-27 23:39:18 +0100 |
commit | a6d689c529e443df58eb218ccb512c516fb7cc81 (patch) | |
tree | 3cbea483d25d7efd614f150d6440496deb54f5ac /OpenSim/Region/CoreModules/World | |
parent | minor: Simplify return of vector render module name and some very minor remov... (diff) | |
download | opensim-SC_OLD-a6d689c529e443df58eb218ccb512c516fb7cc81.zip opensim-SC_OLD-a6d689c529e443df58eb218ccb512c516fb7cc81.tar.gz opensim-SC_OLD-a6d689c529e443df58eb218ccb512c516fb7cc81.tar.bz2 opensim-SC_OLD-a6d689c529e443df58eb218ccb512c516fb7cc81.tar.xz |
refactoring to assign the first argument to a variable
Diffstat (limited to 'OpenSim/Region/CoreModules/World')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs index 3f848ed..3546654 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs | |||
@@ -1176,7 +1176,8 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
1176 | 1176 | ||
1177 | private void InterfaceRunPluginEffect(Object[] args) | 1177 | private void InterfaceRunPluginEffect(Object[] args) |
1178 | { | 1178 | { |
1179 | if ((string) args[0] == "list") | 1179 | string firstArg = (string)args[0]; |
1180 | if (firstArg == "list") | ||
1180 | { | 1181 | { |
1181 | m_log.Info("List of loaded plugins"); | 1182 | m_log.Info("List of loaded plugins"); |
1182 | foreach (KeyValuePair<string, ITerrainEffect> kvp in m_plugineffects) | 1183 | foreach (KeyValuePair<string, ITerrainEffect> kvp in m_plugineffects) |
@@ -1185,14 +1186,14 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
1185 | } | 1186 | } |
1186 | return; | 1187 | return; |
1187 | } | 1188 | } |
1188 | if ((string) args[0] == "reload") | 1189 | if (firstArg == "reload") |
1189 | { | 1190 | { |
1190 | LoadPlugins(); | 1191 | LoadPlugins(); |
1191 | return; | 1192 | return; |
1192 | } | 1193 | } |
1193 | if (m_plugineffects.ContainsKey((string) args[0])) | 1194 | if (m_plugineffects.ContainsKey(firstArg)) |
1194 | { | 1195 | { |
1195 | m_plugineffects[(string) args[0]].RunEffect(m_channel); | 1196 | m_plugineffects[firstArg].RunEffect(m_channel); |
1196 | CheckForTerrainUpdates(); | 1197 | CheckForTerrainUpdates(); |
1197 | } | 1198 | } |
1198 | else | 1199 | else |