Fix discarded std::clamp() result compiler warning
This commit is contained in:
parent
a4d9ee3fa4
commit
25d8e2b478
1 changed files with 2 additions and 2 deletions
|
|
@ -587,8 +587,8 @@ namespace platf {
|
||||||
weak_strong += data.rumble(tp);
|
weak_strong += data.rumble(tp);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::clamp<std::uint32_t>(weak_strong.first, 0, 0xFFFF);
|
weak_strong.first = std::clamp<std::uint32_t>(weak_strong.first, 0, 0xFFFF);
|
||||||
std::clamp<std::uint32_t>(weak_strong.second, 0, 0xFFFF);
|
weak_strong.second = std::clamp<std::uint32_t>(weak_strong.second, 0, 0xFFFF);
|
||||||
|
|
||||||
old_rumble = weak_strong * gain / 0xFFFF;
|
old_rumble = weak_strong * gain / 0xFFFF;
|
||||||
return old_rumble;
|
return old_rumble;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue