fixed an unsigned comparision warning (does this code really do what you intended it to do?)

svn-id: r15938
This commit is contained in:
Max Horn 2004-11-28 13:09:02 +00:00
parent 3225ae0203
commit 540ba778e9

View File

@ -726,8 +726,8 @@ Bit32u Partial::getAmpEnvelope() {
if (tStat->decaying) {
tc = tStat->envbase;
tc = (tc + ((tStat->envdist * tStat->envpos) / tStat->envsize));
if (tc < 0)
tc = 0;
//if (tc < 0) // tc is unsigned, so it will *never* be less than 0
// tc = 0;
if ((tStat->envpos >= tStat->envsize) || (tc == 0)) {
play = false;
// Don't have to worry about prevlevel storage or anything, this partial's about to die