converted hard-coded chat type values to ChatTypeEnum

This commit is contained in:
Jeff Ames
2007-11-08 03:11:10 +00:00
parent 9e9dad1cde
commit 0b4e15bc35
9 changed files with 28 additions and 30 deletions

View File

@@ -65,7 +65,7 @@ namespace OpenSim.Region.Environment.Scenes
/// <param name="fromPos"></param>
/// <param name="fromName"></param>
/// <param name="fromAgentID"></param>
public void SimChat(byte[] message, byte type, int channel, LLVector3 fromPos, string fromName,
public void SimChat(byte[] message, ChatTypeEnum type, int channel, LLVector3 fromPos, string fromName,
LLUUID fromAgentID)
{
if (m_simChatModule != null)
@@ -74,7 +74,7 @@ namespace OpenSim.Region.Environment.Scenes
args.Message = Util.FieldToString(message);
args.Channel = channel;
args.Type = (ChatTypeEnum) type;
args.Type = type;
args.Position = fromPos;
ScenePresence user = GetScenePresence(fromAgentID);