add comments to CheckIfNight16Bit for the day/night system
This commit is contained in:
@@ -416,8 +416,6 @@ CheckIfNight:
|
|||||||
LDA $7EE000 : CMP.b #$12 : BCS .day_time
|
LDA $7EE000 : CMP.b #$12 : BCS .day_time
|
||||||
LDA.b #$03
|
LDA.b #$03
|
||||||
RTL
|
RTL
|
||||||
.dont_change
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
warnpc $0EF3F9 ; free space
|
warnpc $0EF3F9 ; free space
|
||||||
@@ -487,18 +485,18 @@ pullpc
|
|||||||
|
|
||||||
CheckIfNight16Bit:
|
CheckIfNight16Bit:
|
||||||
{
|
{
|
||||||
|
; Don't change the spriteset during the intro sequence
|
||||||
LDA.l $7EF3C5 : AND.w #$00FF : CMP.w #$0002 : BCC .day_time
|
LDA.l $7EF3C5 : AND.w #$00FF : CMP.w #$0002 : BCC .day_time
|
||||||
LDA $7EE000 : AND.w #$00FF : CMP.w #$0006 : BCC .night_time
|
; If it's less than 6 am, jump to night time
|
||||||
.day_time
|
LDA $7EE000 : AND.w #$00FF : CMP.w #$0006 : BCC .night_time
|
||||||
LDA.l $7EF3C5
|
.day_time
|
||||||
|
LDA.l $7EF3C5
|
||||||
RTL
|
RTL
|
||||||
.night_time
|
.night_time
|
||||||
|
; 0x12 = 18 hours or 6 pm
|
||||||
LDA $7EE000 : AND.w #$00FF : CMP.w #$0012 : BCS .day_time
|
LDA $7EE000 : AND.w #$00FF : CMP.w #$0012 : BCS .day_time
|
||||||
LDA.l $7EF3C5
|
; Load the gamestate 03 spritesets, but don't change the save ram
|
||||||
CLC
|
LDA.l $7EF3C5 : CLC : ADC #$0001
|
||||||
ADC #$0001
|
|
||||||
RTL
|
RTL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user