From 7991a71cb39f0b90dda639ff8c69694e454bac10 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sun, 5 Mar 2017 19:48:24 +0100 Subject: [PATCH] Remove redundant ? true : false --- lib/waterfoul/io/lcd_control.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/waterfoul/io/lcd_control.rb b/lib/waterfoul/io/lcd_control.rb index ac318d0..f903b98 100644 --- a/lib/waterfoul/io/lcd_control.rb +++ b/lib/waterfoul/io/lcd_control.rb @@ -16,7 +16,7 @@ module Waterfoul # window show/hide def window_enabled? - lcdc & 0x20 == 0x20 ? true : false + lcdc & 0x20 == 0x20 end # BG Window map tile data @@ -34,11 +34,11 @@ module Waterfoul end def obj_display - lcdc & 0x2 == 0x2 ? true : false + lcdc & 0x2 == 0x2 end def bg_display - lcdc & 0x1 == 0x1 ? true : false + lcdc & 0x1 == 0x1 end private