1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-14 00:54:05 +02:00

fix clang warning

This commit is contained in:
XProger
2018-11-24 06:56:04 +03:00
parent 56de9ea649
commit 2a54d10fc7

View File

@@ -829,12 +829,13 @@ struct Inventory {
void applySounds(bool pause) {
for (int i = 0; i < Sound::channelsCount; i++)
if (Sound::channels[i]->flags & Sound::PAN)
if (Sound::channels[i]->flags & Sound::PAN) {
if (pause)
Sound::channels[i]->pause();
else
Sound::channels[i]->resume();
}
}
void toggle(int playerIndex = 0, Page curPage = PAGE_INVENTORY, TR::Entity::Type type = TR::Entity::NONE) {
if (titleTimer != 0.0f || (isActive() != active))