diff options
author | mid-kid <esteve.varela@gmail.com> | 2020-02-19 19:08:40 +0100 |
---|---|---|
committer | mid-kid <esteve.varela@gmail.com> | 2020-02-21 18:21:29 +0100 |
commit | c22e26808314a4c7a631a9a35b2b69d6d0b0e150 (patch) | |
tree | ce260cd7760d548b4dcb8eb9caa716f148583c7a | |
parent | 317188b35f6ca58e2857fb483c36f000d2f348b2 (diff) |
RTC -> UpdateTimeAndPals
Rename clear misnomer.
Most of the related functions in that file aren't really aptly named but
I don't know good names right now.
-rw-r--r-- | engine/events/field_moves.asm | 2 | ||||
-rw-r--r-- | engine/link/link_trade.asm | 2 | ||||
-rw-r--r-- | engine/menus/menu.asm | 2 | ||||
-rw-r--r-- | home/joypad.asm | 4 | ||||
-rw-r--r-- | home/names.asm | 2 | ||||
-rw-r--r-- | home/rtc.asm | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/engine/events/field_moves.asm b/engine/events/field_moves.asm index 1fd4f4fe0..c898c6690 100644 --- a/engine/events/field_moves.asm +++ b/engine/events/field_moves.asm @@ -92,7 +92,7 @@ HideHeadbuttTree: ld h, [hl] ld l, a - ld a, $5 + ld a, $05 ; grass block ld [hli], a ld [hld], a ld bc, SCREEN_WIDTH diff --git a/engine/link/link_trade.asm b/engine/link/link_trade.asm index 16dc02e8c..4119e48a7 100644 --- a/engine/link/link_trade.asm +++ b/engine/link/link_trade.asm @@ -240,7 +240,7 @@ LinkTradeMenu: ret .loop2 - call RTC + call UpdateTimeAndPals call .TryAnims ret c ld a, [w2DMenuFlags1] diff --git a/engine/menus/menu.asm b/engine/menus/menu.asm index 37775963b..2a90c6f90 100644 --- a/engine/menus/menu.asm +++ b/engine/menus/menu.asm @@ -344,7 +344,7 @@ MenuJoypadLoop: Do2DMenuRTCJoypad: .loopRTC - call RTC + call UpdateTimeAndPals call Menu_WasButtonPressed ret c ld a, [w2DMenuFlags1] diff --git a/home/joypad.asm b/home/joypad.asm index b39f8c0f4..cfc94a4be 100644 --- a/home/joypad.asm +++ b/home/joypad.asm @@ -295,7 +295,7 @@ JoyWaitAorB:: ldh a, [hJoyPressed] and A_BUTTON | B_BUTTON ret nz - call RTC + call UpdateTimeAndPals jr .loop WaitButton:: @@ -413,7 +413,7 @@ PromptButton:: ldh a, [hJoyPressed] and A_BUTTON | B_BUTTON jr nz, .received_input - call RTC + call UpdateTimeAndPals ld a, $1 ldh [hBGMapMode], a call DelayFrame diff --git a/home/names.asm b/home/names.asm index 434eb17d5..d509953c7 100644 --- a/home/names.asm +++ b/home/names.asm @@ -125,7 +125,7 @@ GetPokemonName:: ld e, a ld h, 0 ld l, a - add hl, hl ; hl = hl * 4 + add hl, hl ; hl = hl * 2 add hl, hl ; hl = hl * 4 add hl, de ; hl = (hl*4) + de add hl, hl ; hl = (5*hl) + (5*hl) diff --git a/home/rtc.asm b/home/rtc.asm index 0e5550485..7dc4e776a 100644 --- a/home/rtc.asm +++ b/home/rtc.asm @@ -1,4 +1,4 @@ -RTC:: +UpdateTimeAndPals:: ; update time and time-sensitive palettes ; rtc enabled? |