mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 12:32:34 +00:00
- 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:
parent
8c16853cb3
commit
8ca5f3821d
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
|||
February 10, 2007 (Changes by Graf Zahl)
|
||||
- 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.
|
||||
|
||||
February 4, 2007 (Changes by Graf Zahl)
|
||||
- Fixed: The powered up Mace was missing its HoldAtkState.
|
||||
- Added: Using "*" with ACS's music commands will play the level's default
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue