mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Don't pass on ChaneWaterHeight event from EventManager is new water height is less than 0
This is to stop bad values and subsequent viewer crashes. Thanks to Michelle Argus for this patch.
This commit is contained in:
@@ -1564,6 +1564,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public void TriggerRequestChangeWaterHeight(float height)
|
||||
{
|
||||
if (height < 0)
|
||||
{
|
||||
// ignore negative water height
|
||||
return;
|
||||
}
|
||||
|
||||
RequestChangeWaterHeight handlerRequestChangeWaterHeight = OnRequestChangeWaterHeight;
|
||||
if (handlerRequestChangeWaterHeight != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user