Add parens around statement to banish warning
This commit is contained in:
@@ -301,8 +301,8 @@ void OverlayController::OnRenderRequest() {
|
|||||||
|
|
||||||
void OverlayController::renderOverlay() {
|
void OverlayController::renderOverlay() {
|
||||||
if (!desktopMode) {
|
if (!desktopMode) {
|
||||||
// skip rendering if the overlay isn't visible
|
// skip rendering if the overlay isn't visible
|
||||||
if (!vr::VROverlay() || !vr::VROverlay()->IsOverlayVisible(m_ulOverlayHandle) && !vr::VROverlay()->IsOverlayVisible(m_ulOverlayThumbnailHandle))
|
if (!vr::VROverlay() || (!vr::VROverlay()->IsOverlayVisible(m_ulOverlayHandle) && !vr::VROverlay()->IsOverlayVisible(m_ulOverlayThumbnailHandle)))
|
||||||
return;
|
return;
|
||||||
m_pRenderControl->polishItems();
|
m_pRenderControl->polishItems();
|
||||||
m_pRenderControl->sync();
|
m_pRenderControl->sync();
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ private:
|
|||||||
bool dashboardVisible = false;
|
bool dashboardVisible = false;
|
||||||
|
|
||||||
QPoint m_ptLastMouse;
|
QPoint m_ptLastMouse;
|
||||||
Qt::MouseButtons m_lastMouseButtons = 0;
|
Qt::MouseButtons m_lastMouseButtons = 0;
|
||||||
|
|
||||||
bool desktopMode;
|
bool desktopMode;
|
||||||
bool noSound;
|
bool noSound;
|
||||||
@@ -112,7 +112,7 @@ public:
|
|||||||
void AddOffsetToCollisionBounds(float offset[3], bool commit = true);
|
void AddOffsetToCollisionBounds(float offset[3], bool commit = true);
|
||||||
void RotateCollisionBounds(float angle, bool commit = true); // around y axis
|
void RotateCollisionBounds(float angle, bool commit = true); // around y axis
|
||||||
|
|
||||||
bool isDesktopMode() { return desktopMode; };
|
bool isDesktopMode() { return desktopMode; };
|
||||||
|
|
||||||
utils::ChaperoneUtils& chaperoneUtils() noexcept { return m_chaperoneUtils; }
|
utils::ChaperoneUtils& chaperoneUtils() noexcept { return m_chaperoneUtils; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user