mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +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)
|
foreach (EstateOwnerMessagePacket.ParamListBlock block in packet.ParamList)
|
||||||
{
|
{
|
||||||
float timeSeconds = 0;
|
float timeSeconds = 0;
|
||||||
timeSeconds = BitConverter.ToInt32(block.Parameter, 1);
|
Helpers.TryParse(Helpers.FieldToUTF8String(block.Parameter), out timeSeconds);
|
||||||
timeSeconds = (int) ((timeSeconds/100) - 3);
|
timeSeconds = (int)timeSeconds;
|
||||||
m_scene.Restart(timeSeconds);
|
m_scene.Restart(timeSeconds);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user