diff options
author | teravus | 2013-08-24 05:55:53 -0500 |
---|---|---|
committer | teravus | 2013-08-24 05:55:53 -0500 |
commit | 01c3be27460fd3f28efd17b8d6606b883350f653 (patch) | |
tree | 2441656e55436dbd26ab3a91f455555850bdbb9d /OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs | |
parent | Revert "* This increases accuracy when border crossing (the reason is.. the... (diff) | |
download | opensim-SC-01c3be27460fd3f28efd17b8d6606b883350f653.zip opensim-SC-01c3be27460fd3f28efd17b8d6606b883350f653.tar.gz opensim-SC-01c3be27460fd3f28efd17b8d6606b883350f653.tar.bz2 opensim-SC-01c3be27460fd3f28efd17b8d6606b883350f653.tar.xz |
* Fix a null ref that causes a stack unwind when crossing borders. Less stack unwinding.. the faster it goes.
* Tweak XEngine so that it's partially functional again. It's still not great, but basic things work.
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs b/OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs index 343cdb5..c52d586 100644 --- a/OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs | |||
@@ -182,6 +182,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Combat.CombatModule | |||
182 | try | 182 | try |
183 | { | 183 | { |
184 | ILandObject obj = avatar.Scene.LandChannel.GetLandObject(avatar.AbsolutePosition.X, avatar.AbsolutePosition.Y); | 184 | ILandObject obj = avatar.Scene.LandChannel.GetLandObject(avatar.AbsolutePosition.X, avatar.AbsolutePosition.Y); |
185 | if (obj == null) | ||
186 | return; | ||
185 | if ((obj.LandData.Flags & (uint)ParcelFlags.AllowDamage) != 0 | 187 | if ((obj.LandData.Flags & (uint)ParcelFlags.AllowDamage) != 0 |
186 | || avatar.Scene.RegionInfo.RegionSettings.AllowDamage) | 188 | || avatar.Scene.RegionInfo.RegionSettings.AllowDamage) |
187 | { | 189 | { |