mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
* re-order an operation to check for NaNs in the maptile shadow routine.
This commit is contained in:
@@ -1115,15 +1115,15 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
hfvalue = (float)hm[x, y];
|
||||
hfvaluecompare = (float)hm[x - 1, y - 1];
|
||||
hfdiff = hfvaluecompare - hfvalue;
|
||||
|
||||
|
||||
|
||||
if (Single.IsInfinity(hfvalue) || Single.IsNaN(hfvalue))
|
||||
hfvalue = 0;
|
||||
|
||||
if (Single.IsInfinity(hfvaluecompare) || Single.IsNaN(hfvaluecompare))
|
||||
hfvaluecompare = 0;
|
||||
|
||||
|
||||
hfdiff = hfvaluecompare - hfvalue;
|
||||
|
||||
if (hfdiff > 0.3f)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user