diff options
author | dannye <corrnondacqb@yahoo.com> | 2016-07-18 01:32:24 -0500 |
---|---|---|
committer | dannye <corrnondacqb@yahoo.com> | 2016-07-18 01:32:24 -0500 |
commit | 7c01509b6b69b4dc33f5d739589d50f26ffd65b0 (patch) | |
tree | 89b4000a56c9e3d942666639c83416100f360f88 /engine/save.asm | |
parent | 80bae03975a84dadf080c79f52216866dd410cf8 (diff) | |
parent | fc474c8ee740acbe662b06db0d9cab8edc6680e9 (diff) |
Merge branch 'master' of https://github.com/pret/pokered
Diffstat (limited to 'engine/save.asm')
-rwxr-xr-x | engine/save.asm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/save.asm b/engine/save.asm index 58326187..4fb2c4c8 100755 --- a/engine/save.asm +++ b/engine/save.asm @@ -638,7 +638,7 @@ SaveHallOfFameTeams: ld a, [wNumHoFTeams] dec a cp HOF_TEAM_CAPACITY - jr nc, .asm_73b28 + jr nc, .shiftHOFTeams ld hl, sHallOfFame ld bc, HOF_TEAM call AddNTimes @@ -648,7 +648,9 @@ SaveHallOfFameTeams: ld bc, HOF_TEAM jr HallOfFame_Copy -.asm_73b28 +.shiftHOFTeams +; if the space designated for HOF teams is full, then shift all HOF teams to the next slot, making space for the new HOF team +; this deletes the last HOF team though ld hl, sHallOfFame + HOF_TEAM ld de, sHallOfFame ld bc, HOF_TEAM * (HOF_TEAM_CAPACITY - 1) |