diff options
author | Charles Krinke | 2008-03-08 18:06:10 +0000 |
---|---|---|
committer | Charles Krinke | 2008-03-08 18:06:10 +0000 |
commit | 3151e302caa804222206dc85579bb4c2ed9181ac (patch) | |
tree | 239b419547331c5843b5023efbe319bb012e395e /OpenSim/Region/Environment/Scenes/Scene.cs | |
parent | * Made a change to the loading mechanism to fix it's operation. (diff) | |
download | opensim-SC-3151e302caa804222206dc85579bb4c2ed9181ac.zip opensim-SC-3151e302caa804222206dc85579bb4c2ed9181ac.tar.gz opensim-SC-3151e302caa804222206dc85579bb4c2ed9181ac.tar.bz2 opensim-SC-3151e302caa804222206dc85579bb4c2ed9181ac.tar.xz |
Thank you kindly, Ldviopeng for:
Patch to implement the following LSL / OS functions
llParcelPrimCount(60%)
osSetParcelMediaURL
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 2ede245..cc97988 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -2414,6 +2414,22 @@ namespace OpenSim.Region.Environment.Scenes | |||
2414 | } | 2414 | } |
2415 | } | 2415 | } |
2416 | 2416 | ||
2417 | public void SetLandMediaURL(float x, float y, string url) | ||
2418 | { | ||
2419 | Land land = LandManager.getLandObject(x, y); | ||
2420 | |||
2421 | if (land == null) | ||
2422 | { | ||
2423 | return; | ||
2424 | } | ||
2425 | |||
2426 | else | ||
2427 | { | ||
2428 | land.landData.mediaURL = url; | ||
2429 | return; | ||
2430 | } | ||
2431 | } | ||
2432 | |||
2417 | #endregion | 2433 | #endregion |
2418 | 2434 | ||
2419 | #region Script Engine | 2435 | #region Script Engine |