diff options
author | Max Horn | 2004-11-28 13:09:02 +0000 |
---|---|---|
committer | Max Horn | 2004-11-28 13:09:02 +0000 |
commit | 540ba778e9efcbf2c46504b74381e33195549778 (patch) | |
tree | 0e96c70fa7d6f18ff99f94e41d4bab3fa413b373 | |
parent | 3225ae020397529b4c0f7067c1d68c296e968141 (diff) | |
download | scummvm-rg350-540ba778e9efcbf2c46504b74381e33195549778.tar.gz scummvm-rg350-540ba778e9efcbf2c46504b74381e33195549778.tar.bz2 scummvm-rg350-540ba778e9efcbf2c46504b74381e33195549778.zip |
fixed an unsigned comparision warning (does this code really do what you intended it to do?)
svn-id: r15938
-rw-r--r-- | backends/midi/mt32/partial.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/midi/mt32/partial.cpp b/backends/midi/mt32/partial.cpp index 97158ed396..34da887718 100644 --- a/backends/midi/mt32/partial.cpp +++ b/backends/midi/mt32/partial.cpp @@ -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 |