* Made covenant changes made in the estate tools persist across sim restarts.

afrisby
Teravus Ovares 2008-01-03 23:46:43 +00:00
parent 0e966baa2c
commit 0c555883d5
2 changed files with 7 additions and 1 deletions

View File

@ -390,5 +390,10 @@ namespace OpenSim.Framework
return true; return true;
} }
public void SaveEstatecovenantUUID(LLUUID notecard)
{
configMember.forceSetConfigurationOption("estate_covanant_uuid", notecard.ToString());
}
} }
} }

View File

@ -477,7 +477,7 @@ namespace OpenSim.Region.Environment
foreach (EstateOwnerMessagePacket.ParamListBlock block in packet.ParamList) foreach (EstateOwnerMessagePacket.ParamListBlock block in packet.ParamList)
{ {
float timeSeconds = 0; float timeSeconds = 0;
timeSeconds = BitConverter.ToInt16(block.Parameter, 1); timeSeconds = BitConverter.ToInt32(block.Parameter, 1);
timeSeconds = (int) ((timeSeconds/100) - 3); timeSeconds = (int) ((timeSeconds/100) - 3);
m_scene.Restart(timeSeconds); m_scene.Restart(timeSeconds);
} }
@ -489,6 +489,7 @@ namespace OpenSim.Region.Environment
{ {
LLUUID newCovenantID = new LLUUID(Helpers.FieldToUTF8String(block.Parameter)); LLUUID newCovenantID = new LLUUID(Helpers.FieldToUTF8String(block.Parameter));
m_regInfo.CovenantID = newCovenantID; m_regInfo.CovenantID = newCovenantID;
m_scene.RegionInfo.SaveEstatecovenantUUID(newCovenantID);
} }
} }