Bugfixes for lobby stuff

This commit is contained in:
aerinon
2020-11-12 12:18:23 -07:00
parent 8d9775c3de
commit 94561e01c2
2 changed files with 22 additions and 0 deletions

View File

@@ -62,6 +62,12 @@ nop #5
org $01b618 ; Bank01.asm : 7963 Dungeon_LoadHeader (REP #$20 : INY : LDA [$0D], Y)
nop : jsl OverridePaletteHeader
org $02817e ; Bank02.asm : 414 (LDA $02811E, X)
jsl FixAnimatedTiles
org $028a06 ; Bank02.asm : 1941 Dungeon_ResetTorchBackgroundAndPlayer
JSL FixWallmasterLamp
org $00d377 ;Bank 00 line 3185
DecompDungAnimatedTiles:
org $00fda4 ;Bank 00 line 8882

16
gfx.asm
View File

@@ -33,6 +33,22 @@ GfxFixer:
rtl
}
FixAnimatedTiles:
LDA.L DRMode : cmp #$02 : bne +
PHX
LDX $A0 : LDA.l TilesetTable, x
CMP $0AA1 : beq ++
TAX : PLA : BRA +
++
PLX
+ LDA $02802E, X ; what we wrote over
RTL
FixWallmasterLamp:
ORA $0458
STY $1C : STA $1D : RTL ; what we wrote over
CgramAuxToMain: ; ripped this from bank02 because it ended with rts
{
rep #$20