summaryrefslogtreecommitdiff
path: root/engine/save.asm
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-06-11 21:30:05 -0700
committerYamaArashi <shadow962@live.com>2016-06-12 00:52:13 -0700
commitfd2235e678c58cebd6255b5e658e704ee5138591 (patch)
tree6b7a3e2ae3030f4078ac4cbf9b59cd9529055fa2 /engine/save.asm
parenta51037eeeedb03e29d8675626018cf02750882fa (diff)
sync engine code with pokeyellow
Diffstat (limited to 'engine/save.asm')
-rwxr-xr-xengine/save.asm6
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)