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:
MW
2008-07-09 11:01:26 +00:00
parent 5609292101
commit 7db2e19500
4 changed files with 5 additions and 5 deletions

View File

@@ -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);