mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
let silly tests override version on local connections
This commit is contained in:
@@ -48,7 +48,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
|
||||
/// <summary>
|
||||
/// Version of this service.
|
||||
/// </summary>
|
||||
public string ServiceVersion { get; set; }
|
||||
public float ServiceVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Map region ID to scene.
|
||||
@@ -81,6 +81,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
|
||||
|
||||
public void InitialiseService(IConfigSource configSource)
|
||||
{
|
||||
ServiceVersion = VersionInfo.SimulationServiceVersionAcceptedMax;
|
||||
}
|
||||
|
||||
public void PostInitialise()
|
||||
@@ -252,7 +253,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
|
||||
public bool QueryAccess(GridRegion destination, UUID agentID, string agentHomeURI, bool viaTeleport, Vector3 position, List<UUID> features, out float version, out string reason)
|
||||
{
|
||||
reason = "Communications failure";
|
||||
version = VersionInfo.SimulationServiceVersionAcceptedMax; // If it's within the process, use max. If it's not, the connector will overwrite this
|
||||
version = ServiceVersion; // If it's within the process, use max. If it's not, the connector will overwrite this
|
||||
if (destination == null)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user