Skip to content

Commit

Permalink
Merge pull request #488 from MaikelChan/training-saving
Browse files Browse the repository at this point in the history
Save data after successfully completing training mission
  • Loading branch information
fgsfdsfgs authored Aug 6, 2024
2 parents 897020b + 6b71e62 commit b534a42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/game/training.c
Original file line number Diff line number Diff line change
Expand Up @@ -2818,6 +2818,9 @@ void dtTick(void)
g_DtData.completed = true;
g_DtData.timeleft = 1;
g_DtData.finished = true;
#ifndef PLATFORM_N64
filemgrSaveOrLoad(&g_GameFileGuid, FILEOP_SAVE_GAME_000, 0);
#endif
}
} else if (g_DtData.finished) {
if (g_DtData.timeleft <= 0) {
Expand Down Expand Up @@ -3105,6 +3108,9 @@ void htTick(void)
g_HtData.completed = true;
g_HtData.timeleft = 1;
g_HtData.finished = true;
#ifndef PLATFORM_N64
filemgrSaveOrLoad(&g_GameFileGuid, FILEOP_SAVE_GAME_000, 0);
#endif
}
} else if (g_HtData.finished) {
if (g_HtData.timeleft <= 0) {
Expand Down

0 comments on commit b534a42

Please sign in to comment.