diff options
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 6ffc0fc..e7d00e1 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -13055,7 +13055,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
13055 | 13055 | ||
13056 | for (int i = 0; i < commandList.Data.Length; i++) | 13056 | for (int i = 0; i < commandList.Data.Length; i++) |
13057 | { | 13057 | { |
13058 | ParcelMediaCommandEnum command = (ParcelMediaCommandEnum)commandList.Data[i]; | 13058 | int cmd = (LSL_Integer)commandList.Data[i]; // Yengine cast issue |
13059 | ParcelMediaCommandEnum command = (ParcelMediaCommandEnum)cmd; | ||
13059 | switch (command) | 13060 | switch (command) |
13060 | { | 13061 | { |
13061 | case ParcelMediaCommandEnum.Agent: | 13062 | case ParcelMediaCommandEnum.Agent: |
@@ -13252,14 +13253,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
13252 | if (sp.currentParcelUUID == landData.GlobalID) | 13253 | if (sp.currentParcelUUID == landData.GlobalID) |
13253 | { | 13254 | { |
13254 | sp.ControllingClient.SendParcelMediaCommand(0x4, // TODO what is this? | 13255 | sp.ControllingClient.SendParcelMediaCommand(0x4, // TODO what is this? |
13255 | (ParcelMediaCommandEnum)commandToSend, time); | 13256 | commandToSend.Value, time); |
13256 | } | 13257 | } |
13257 | }); | 13258 | }); |
13258 | } | 13259 | } |
13259 | else if (!presence.IsChildAgent) | 13260 | else if (!presence.IsChildAgent) |
13260 | { | 13261 | { |
13261 | presence.ControllingClient.SendParcelMediaCommand(0x4, // TODO what is this? | 13262 | presence.ControllingClient.SendParcelMediaCommand(0x4, // TODO what is this? |
13262 | (ParcelMediaCommandEnum)commandToSend, time); | 13263 | commandToSend.Value, time); |
13263 | } | 13264 | } |
13264 | } | 13265 | } |
13265 | ScriptSleep(m_sleepMsOnParcelMediaCommandList); | 13266 | ScriptSleep(m_sleepMsOnParcelMediaCommandList); |