Regression in effect_handler_EARTHQUAKE()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PowerWyrm
    Prophet
    • Apr 2008
    • 2987

    Regression in effect_handler_EARTHQUAKE()

    Commit e176294 pushed taking damage later in effect_handler_EARTHQUAKE(). However, the "damage" variable is used as a global variable in that function and overwritten by monster damage on line 1492 if a monster takes damage from the quake, so the value on line 1554 may be incorrect. The code should use a different variable for monster damage.
    PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
Working...
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎