diff options
author | UbitUmarov | 2015-12-01 19:49:27 +0000 |
---|---|---|
committer | UbitUmarov | 2015-12-01 19:49:27 +0000 |
commit | b1c4f6915439c8f3469ba6933472ccf96463af59 (patch) | |
tree | db19a6b3d1bfd0838c70dea395380eedd1a20f74 /OpenSim | |
parent | Fix protocol versions to wearables count mapping (diff) | |
download | opensim-SC_OLD-b1c4f6915439c8f3469ba6933472ccf96463af59.zip opensim-SC_OLD-b1c4f6915439c8f3469ba6933472ccf96463af59.tar.gz opensim-SC_OLD-b1c4f6915439c8f3469ba6933472ccf96463af59.tar.bz2 opensim-SC_OLD-b1c4f6915439c8f3469ba6933472ccf96463af59.tar.xz |
fix protocol version to max wearables mapping
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs index 399996e..89a47fe 100644 --- a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs +++ b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs | |||
@@ -396,8 +396,10 @@ namespace OpenSim.Services.Connectors.Simulation | |||
396 | // Version stuff | 396 | // Version stuff |
397 | if (ctx.OutboundVersion < 0.5) | 397 | if (ctx.OutboundVersion < 0.5) |
398 | ctx.WearablesCount = AvatarWearable.LEGACY_VERSION_MAX_WEARABLES; | 398 | ctx.WearablesCount = AvatarWearable.LEGACY_VERSION_MAX_WEARABLES; |
399 | if (ctx.OutboundVersion < 0.6) | 399 | else if (ctx.OutboundVersion < 0.6) |
400 | ctx.WearablesCount = AvatarWearable.LEGACY_VERSION_MAX_WEARABLES + 1; | 400 | ctx.WearablesCount = AvatarWearable.LEGACY_VERSION_MAX_WEARABLES + 1; |
401 | else | ||
402 | ctx.WearablesCount = -1; // send all (just in case..) | ||
401 | 403 | ||
402 | return success; | 404 | return success; |
403 | } | 405 | } |