- Changed earthquake code to not add all the intensities but use the maximum

in DEarthQuake::StaticGetQuakeIntensity. The reason for this: Quakes were
  never supposed to be additive. Many maps, including Hexen's own have placed
  quake spots so that they cover a larger area but the areas covered by the
  single spots overlap. On such maps the view will shake like crazy and
  render the map nearly unplayable.


SVN r480 (trunk)
This commit is contained in:
Christoph Oelckers 2007-02-10 21:22:31 +00:00
commit 8ca5f3821d
2 changed files with 10 additions and 1 deletions

View file

@ -139,7 +139,8 @@ int DEarthquake::StaticGetQuakeIntensity (AActor *victim)
victim->y - quake->m_Spot->y);
if (dist < quake->m_TremorRadius)
{
intensity += quake->m_Intensity;
if (intensity < quake->m_Intensity)
intensity = quake->m_Intensity;
}
}
}