diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-10-14 11:40:55 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-10-14 11:40:55 +0200 |
commit | 616ab4fac200170bc0d2ba1958e424fd309fc494 (patch) | |
tree | b39dcd6dfe36cc5c99ce7f8790631ac242b1217e /scene/resources | |
parent | 1fed266bf5452b30376db62495f4985f6975f2c1 (diff) |
Small fixes to redundand code, copy paste bugs
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/bit_map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/bit_map.cpp b/scene/resources/bit_map.cpp index b5354bc3e2..e6139dd707 100644 --- a/scene/resources/bit_map.cpp +++ b/scene/resources/bit_map.cpp @@ -534,7 +534,7 @@ void BitMap::grow_mask(int p_pixels, const Rect2 &p_rect) { return; } - bool bit_value = (p_pixels > 0) ? true : false; + bool bit_value = p_pixels > 0; p_pixels = Math::abs(p_pixels); Rect2i r = Rect2i(0, 0, width, height).clip(p_rect); |