diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2018-10-06 16:20:41 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2018-10-06 16:20:41 -0400 |
commit | 4f7b33cdcfdcbc11bcc506018dff1b06db3cf3f6 (patch) | |
tree | 688f040a857c59629101076487c097da6bc5dff3 /scene/gui | |
parent | 37386f112bafa9c4e94c342f6d5f04392a5623f7 (diff) |
Remove redundant "== false" code
Some of this code has been re-organized.
f
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/base_button.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp index 71fb97c2c6..6dfaacc776 100644 --- a/scene/gui/base_button.cpp +++ b/scene/gui/base_button.cpp @@ -368,7 +368,7 @@ BaseButton::DrawMode BaseButton::get_draw_mode() const { return DRAW_DISABLED; }; - if (status.press_attempt == false && status.hovering) { + if (!status.press_attempt && status.hovering) { if (status.pressed) return DRAW_HOVER_PRESSED; |