Skip to content

Commit

Permalink
alttp: fix bad dungeon name lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDunne committed Jan 27, 2024
1 parent fa8fc55 commit f0dae47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions games/alttp/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,9 @@ func (g *Game) readMainComplete(rsps []snes.Response) {

dungeon := g.wramU16(0x040C)
if local.Dungeon != dungeon {
dungName := "<unknown>"
if int(dungeon) < len(dungeonNames) {
dungName = dungeonNames[dungeon]
dungName := "cave"
if dungeon < 0x20 {
dungName = dungeonNames[dungeon>>1]
}
log.Printf(
"alttp: local: dungeon $%04x -> $%04x ; %s\n",
Expand Down

0 comments on commit f0dae47

Please sign in to comment.