mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 12:48:16 +00:00
fixed an unsigned comparision warning (does this code really do what you intended it to do?)
svn-id: r15938
This commit is contained in:
parent
3225ae0203
commit
540ba778e9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user