Skip to content

Commit d312cc2

Browse files
committed
add note & build flag for var
1 parent 0830448 commit d312cc2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/gamemodestate/handlegameover.asm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@ gameModeState_handleGameOver:
1717
@gameOver:
1818
lda #$03
1919
sta renderMode
20+
.if KEYBOARD = 1
2021
inc entryActive
2122
jsr handleHighScoreIfNecessary
2223
dec entryActive
24+
.else
25+
jsr handleHighScoreIfNecessary
26+
.endif
2327
lda #$01
2428
sta playState
2529
lda #$EF

src/ram.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ invisibleFlag: .res 1 ; $63B ; 0 for normal mode, non-zero for Invisible playfi
221221
currentFloor: .res 1 ; $63C floorModifier is copied here at game init. Set to 0 otherwise and incremented when linecap floor.
222222
mapperId: .res 1 ; $63D ; For INES_MAPPER 1000 (autodetect). 0 = CNROM. 1 = MMC1.
223223

224-
entryActive: .res 1
224+
entryActive: .res 1 ; todo: find better way to track high score entry screen
225225
.res $34
226226

227227
.if KEYBOARD

0 commit comments

Comments
 (0)