diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/EventManager.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/EventManager.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index 547e693..209a0a6 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs | |||
@@ -1588,6 +1588,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
1588 | 1588 | ||
1589 | public void TriggerRequestChangeWaterHeight(float height) | 1589 | public void TriggerRequestChangeWaterHeight(float height) |
1590 | { | 1590 | { |
1591 | if (height < 0) | ||
1592 | { | ||
1593 | // ignore negative water height | ||
1594 | return; | ||
1595 | } | ||
1596 | |||
1591 | RequestChangeWaterHeight handlerRequestChangeWaterHeight = OnRequestChangeWaterHeight; | 1597 | RequestChangeWaterHeight handlerRequestChangeWaterHeight = OnRequestChangeWaterHeight; |
1592 | if (handlerRequestChangeWaterHeight != null) | 1598 | if (handlerRequestChangeWaterHeight != null) |
1593 | { | 1599 | { |