1
0
Fork 0
mirror of https://github.com/colby-swandale/waterfoul synced 2025-01-16 15:41:30 +01:00

Remove redundant ? true : false

This commit is contained in:
Benoit Daloze 2017-03-05 19:48:24 +01:00
parent 394dfdea5e
commit 7991a71cb3

View file

@ -16,7 +16,7 @@ module Waterfoul
# window show/hide # window show/hide
def window_enabled? def window_enabled?
lcdc & 0x20 == 0x20 ? true : false lcdc & 0x20 == 0x20
end end
# BG Window map tile data # BG Window map tile data
@ -34,11 +34,11 @@ module Waterfoul
end end
def obj_display def obj_display
lcdc & 0x2 == 0x2 ? true : false lcdc & 0x2 == 0x2
end end
def bg_display def bg_display
lcdc & 0x1 == 0x1 ? true : false lcdc & 0x1 == 0x1
end end
private private