mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
corrected the params types on IClientAPI.SendParcelMediaCommand. the command parameter should be set to the the ParcelMediaCommandEnum value. While flags seems to need to be set to (uint)(1<<[value of the command enum])
This commit is contained in:
@@ -642,7 +642,7 @@ namespace OpenSim.Framework
|
||||
|
||||
#region Parcel Methods
|
||||
|
||||
void SendParcelMediaCommand(ParcelMediaCommandEnum flags, uint command, float time);
|
||||
void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time);
|
||||
|
||||
void SendParcelMediaUpdate(string mediaUrl, LLUUID mediaTextureID,
|
||||
byte autoScale, string mediaType, string mediaDesc, int mediaWidth, int mediaHeight,
|
||||
|
||||
@@ -6597,11 +6597,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
|
||||
#region Media Parcel Members
|
||||
|
||||
public void SendParcelMediaCommand(ParcelMediaCommandEnum flags, uint command, float time)
|
||||
public void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time)
|
||||
{
|
||||
ParcelMediaCommandMessagePacket commandMessagePacket = new ParcelMediaCommandMessagePacket();
|
||||
commandMessagePacket.CommandBlock.Flags = (uint) flags;
|
||||
commandMessagePacket.CommandBlock.Command = command;
|
||||
commandMessagePacket.CommandBlock.Command =(uint) command;
|
||||
commandMessagePacket.CommandBlock.Time = time;
|
||||
|
||||
OutPacket(commandMessagePacket, ThrottleOutPacketType.Unknown);
|
||||
|
||||
@@ -796,7 +796,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
|
||||
#endregion
|
||||
|
||||
|
||||
public void SendParcelMediaCommand(ParcelMediaCommandEnum flags, uint command, float time)
|
||||
public void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -771,7 +771,7 @@ namespace OpenSim.Region.Examples.SimpleModule
|
||||
{
|
||||
}
|
||||
|
||||
public void SendParcelMediaCommand(ParcelMediaCommandEnum flags, uint command, float time)
|
||||
public void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user