aboutsummaryrefslogtreecommitdiffstats
path: root/engine/save.asm
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-06-12 00:54:14 -0700
committerGitHub <noreply@github.com>2016-06-12 00:54:14 -0700
commit2b2c6fefd311101c87845c8c498746dc74bd725f (patch)
tree3f917e1bf896e380cfea6d2d876ff68a4db87a57 /engine/save.asm
parentRemove the last address comments (diff)
parentmore syncing with pokeyellow (diff)
downloadpokeyellow-2b2c6fefd311101c87845c8c498746dc74bd725f.tar.gz
pokeyellow-2b2c6fefd311101c87845c8c498746dc74bd725f.tar.xz
pokeyellow-2b2c6fefd311101c87845c8c498746dc74bd725f.zip
Merge pull request #134 from YamaArashi/master
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)