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:
parent
394dfdea5e
commit
7991a71cb3
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue