[NCSF] Minor correction to the attack rate calculation.
(Basically, it should never allow the same volume level as the previous
calculation.)
--- a/src/in_ncsf/SSEQPlayer/Channel.cpp
+++ b/src/in_ncsf/SSEQPlayer/Channel.cpp
@@ -445,9 +445,10 @@
case CS_ATTACK:
{
int newAmpl = this->ampl;
+ int oldAmpl = this->ampl >> 7;
do
newAmpl = (newAmpl * static_cast<int>(this->attackLvl)) / 256;
- while (newAmpl == this->ampl);
+ while ((newAmpl >> 7) == oldAmpl);
this->ampl = newAmpl;
if (!this->ampl)
this->state = CS_DECAY;