* re-order an operation to check for NaNs in the maptile shadow routine.

0.6.0-stable
Teravus Ovares 2008-08-16 20:54:51 +00:00
parent d7f2c454f1
commit 7c8cc345cd
1 changed files with 4 additions and 4 deletions

View File

@ -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)
{