diff options
author | PokeCodec <doremylover456@gmail.com> | 2020-08-24 15:20:50 -0400 |
---|---|---|
committer | PokeCodec <doremylover456@gmail.com> | 2020-08-24 15:20:50 -0400 |
commit | b52c0d1a2e6351cd7329872bedac2a7360097362 (patch) | |
tree | 8c8606bee87141f834a03414ac5663df93ac9a8e | |
parent | 95009c1c033a618881b8f1a9878c49fc793908ef (diff) |
Cleaned up variables
-rw-r--r-- | gflib/bg.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gflib/bg.c b/gflib/bg.c index d6b2cf31e..085c3216b 100644 --- a/gflib/bg.c +++ b/gflib/bg.c @@ -621,17 +621,15 @@ s32 GetBgX(u8 bg) { if (IsInvalidBg32(bg)) return -1; - else if (!GetBgControlAttribute(bg, BG_CTRL_ATTR_VISIBLE)) + if (!GetBgControlAttribute(bg, BG_CTRL_ATTR_VISIBLE)) return -1; - else - return sGpuBgConfigs2[bg].bg_x; + return sGpuBgConfigs2[bg].bg_x; } s32 ChangeBgY(u8 bg, s32 value, u8 op) { u8 mode; - u16 temp1; - u16 temp2; + u16 temp1, temp2; if (IsInvalidBg32(bg) || !GetBgControlAttribute(bg, BG_CTRL_ATTR_VISIBLE)) { |