mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
fixes for warnings
Also overlays menu option should work better in conjunction with ui-center/fading
This commit is contained in:
parent
5ef6847dc3
commit
6e3057479f
2 changed files with 1 additions and 4 deletions
|
@ -71,9 +71,7 @@ void OverlayConductor::update(float dt) {
|
|||
} else if ((usecTimestampNow() - _timeInPotentialMode) > (nowDriving ? REQUIRED_USECS_IN_NEW_MODE_BEFORE_INVISIBLE : REQUIRED_USECS_IN_NEW_MODE_BEFORE_VISIBLE)) {
|
||||
_timeInPotentialMode = 0; // a real transition
|
||||
bool wantsOverlays = Menu::getInstance()->isOptionChecked(MenuOption::Overlays);
|
||||
if (wantsOverlays) {
|
||||
setEnabled(!nowDriving);
|
||||
}
|
||||
setEnabled(!nowDriving && wantsOverlays);
|
||||
_driving = nowDriving;
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@ private:
|
|||
bool _enabled { false };
|
||||
bool _driving { false };
|
||||
quint64 _timeInPotentialMode { 0 };
|
||||
bool _wantsOverlays { true };
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue