Skip to content

Commit

Permalink
Save / load leave data
Browse files Browse the repository at this point in the history
  • Loading branch information
kraflab committed Oct 8, 2023
1 parent 06ccbda commit 70b2907
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prboom2/src/dsda/save.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ static void dsda_ArchiveContext(void) {
CheckSaveGame(dsda_GameOptionSize());
save_p = G_WriteOptions(save_p);

P_SAVE_X(leave_data);

P_SAVE_X(leveltime);
P_SAVE_X(totalleveltimes);
P_SAVE_X(levels_completed);
Expand Down Expand Up @@ -121,6 +123,8 @@ static void dsda_UnArchiveContext(void) {

save_p += (G_ReadOptions(save_p) - save_p);

P_LOAD_X(leave_data);

G_InitNew(gameskill, gameepisode, gamemap, false);

P_LOAD_X(leveltime);
Expand Down

0 comments on commit 70b2907

Please sign in to comment.