Merge pull request #87 from compiling/aga2_fw

Fix fake world when fluting to pyramid twice
This commit is contained in:
KatDevsGames
2020-09-20 01:59:10 -04:00
committed by GitHub

View File

@@ -82,6 +82,12 @@ RTS
; bunny on the pyramid ; bunny on the pyramid
FixAga2Bunny: FixAga2Bunny:
LDA.l FixFakeWorld : BEQ + ; Only use this fix is fakeworld fix is in use LDA.l FixFakeWorld : BEQ + ; Only use this fix is fakeworld fix is in use
LDA.l InvertedMode : BEQ +++
LDA.b #$00 : STA !DARK_WORLD ; Switch to light world
BRA ++
+++
LDA.b #$40 : STA !DARK_WORLD ; Switch to dark world
++
JSL DecideIfBunny : BNE + JSL DecideIfBunny : BNE +
JSR MakeBunny JSR MakeBunny
LDA.b #$04 : STA.w $012C ; play bunny music LDA.b #$04 : STA.w $012C ; play bunny music