Skip to content

Commit a19ed66

Browse files
Merge pull request #89 from zohassadar/pal181
clarify pal exception covers 2 levels
2 parents b0825ff + fc6afa9 commit a19ed66

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/nmi/render_mode_play_and_demo.asm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ updatePaletteForLevel:
325325
tax
326326
lda palFlag
327327
beq @renderPalettes
328-
cpx #(181 & $3F) ; level 53 is properly mod10'd
328+
cpx #$35 ; Level 181 & 245 and'd with $3F (level 53 is properly mod10'd)
329329
bne @renderPalettes
330330
ldx #$40
331331
@renderPalettes:
@@ -370,7 +370,7 @@ colorTable0:
370370
.byte $17,$47,$29,$19
371371
.byte $06,$4C,$BD,$19
372372
.byte $00,$01,$03,$05
373-
.byte $21 ; level 181 pal (different from NTSC)
373+
.byte $21 ; level 181/245 pal (different from NTSC)
374374

375375
colorTable1:
376376
.byte $21,$29,$24,$2A
@@ -389,7 +389,7 @@ colorTable1:
389389
.byte $A0,$AB,$07,$C9
390390
.byte $38,$2A,$4E,$60
391391
.byte $00,$01,$04,$05
392-
.byte $2b ; level 181 pal (same as NTSC)
392+
.byte $2b ; level 181/245 pal (same as NTSC)
393393

394394
colorTable2:
395395
.byte $12,$1A,$14,$12
@@ -408,7 +408,7 @@ colorTable2:
408408
.byte $02,$A5,$18,$07
409409
.byte $E9,$99,$99,$00
410410
.byte $01,$02,$04,$05
411-
.byte $25 ; level 181 pal (same as NTSC)
411+
.byte $25 ; level 181/245 pal (same as NTSC)
412412

413413
incrementPieceStat:
414414
tax

0 commit comments

Comments
 (0)