mirror of
https://github.com/colby-swandale/waterfoul
synced 2024-12-25 21:58:55 +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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue