* Fixing a the time clock issue on Sim Restart messages. See Mantis 287

afrisby
Teravus Ovares 2008-01-04 00:40:19 +00:00
parent 0c555883d5
commit 42e129cb33
1 changed files with 3 additions and 2 deletions

View File

@ -477,9 +477,10 @@ namespace OpenSim.Region.Environment
foreach (EstateOwnerMessagePacket.ParamListBlock block in packet.ParamList)
{
float timeSeconds = 0;
timeSeconds = BitConverter.ToInt32(block.Parameter, 1);
timeSeconds = (int) ((timeSeconds/100) - 3);
Helpers.TryParse(Helpers.FieldToUTF8String(block.Parameter), out timeSeconds);
timeSeconds = (int)timeSeconds;
m_scene.Restart(timeSeconds);
}
}