mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
* Fixing a the time clock issue on Sim Restart messages. See Mantis 287
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user