Yengine cast issue

0.9.1.0-post-fixes
UbitUmarov 2018-09-08 04:58:14 +01:00
parent 0d93d5ce69
commit ca9651df0d
1 changed files with 4 additions and 3 deletions

View File

@ -13055,7 +13055,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
for (int i = 0; i < commandList.Data.Length; i++)
{
ParcelMediaCommandEnum command = (ParcelMediaCommandEnum)commandList.Data[i];
int cmd = (LSL_Integer)commandList.Data[i]; // Yengine cast issue
ParcelMediaCommandEnum command = (ParcelMediaCommandEnum)cmd;
switch (command)
{
case ParcelMediaCommandEnum.Agent:
@ -13252,14 +13253,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (sp.currentParcelUUID == landData.GlobalID)
{
sp.ControllingClient.SendParcelMediaCommand(0x4, // TODO what is this?
(ParcelMediaCommandEnum)commandToSend, time);
commandToSend.Value, time);
}
});
}
else if (!presence.IsChildAgent)
{
presence.ControllingClient.SendParcelMediaCommand(0x4, // TODO what is this?
(ParcelMediaCommandEnum)commandToSend, time);
commandToSend.Value, time);
}
}
ScriptSleep(m_sleepMsOnParcelMediaCommandList);