mirror of https://github.com/AxioDL/metaforce.git
CRumbleVoice: Correct bool->s16 conversion
Given the return type of the function is an s16, we can just use 0 directly here.
This commit is contained in:
parent
2701f060ee
commit
71399d0944
|
@ -22,10 +22,12 @@ bool CRumbleVoice::OwnsSustained(s16 handle) const {
|
|||
}
|
||||
|
||||
s16 CRumbleVoice::GetFreeChannel() const {
|
||||
for (s16 i = 0; i < 4; ++i)
|
||||
if (!((1 << i) & x2c_usedChannels))
|
||||
for (s16 i = 0; i < 4; ++i) {
|
||||
if (!((1 << i) & x2c_usedChannels)) {
|
||||
return i;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
float CRumbleVoice::GetIntensity() const {
|
||||
|
|
Loading…
Reference in New Issue