placeholders

This commit is contained in:
nhmall
2026-05-02 08:25:58 -04:00
parent 3db7baf4d3
commit 0c9382e704
4 changed files with 18 additions and 0 deletions
+7
View File
@@ -1221,6 +1221,12 @@ struct instance_globals_saved_u {
dest_area updest;
};
struct instance_globals_saved_w {
/* reserved */
long wreserve;
int32_t wtreserved;
};
struct instance_globals_saved_x {
/* mkmaze.c */
int xmin, xmax; /* level boundaries x */
@@ -1274,6 +1280,7 @@ extern struct instance_globals_saved_r svr;
extern struct instance_globals_saved_s svs;
extern struct instance_globals_saved_t svt;
extern struct instance_globals_saved_u svu;
extern struct instance_globals_saved_w svw;
extern struct instance_globals_saved_x svx;
extern struct instance_globals_saved_y svy;
extern struct sinfo program_state; /* flags describing game's current state */
+7
View File
@@ -987,6 +987,11 @@ static const struct instance_globals_saved_x init_svx = {
UNDEFINED_VALUE /* xmax */
};
static const struct instance_globals_saved_w init_svw = {
0, /* wreserve */
100, /* wtreserved, not used currently */
};
static const struct instance_globals_saved_y init_svy = {
/* mkmaze.c */
UNDEFINED_VALUE, /* ymin */
@@ -1042,6 +1047,7 @@ struct instance_globals_saved_r svr;
struct instance_globals_saved_s svs;
struct instance_globals_saved_t svt;
struct instance_globals_saved_u svu;
struct instance_globals_saved_w svw;
struct instance_globals_saved_x svx;
struct instance_globals_saved_y svy;
struct sinfo program_state;
@@ -1119,6 +1125,7 @@ decl_globals_init(void)
svs = init_svs;
svt = init_svt;
svu = init_svu;
svw = init_svw;
svx = init_svx;
svy = init_svy;
+2
View File
@@ -598,6 +598,8 @@ restgamestate(NHFILE *nhfp)
amii_setpens(amii_numcolors); /* use colors from save file */
#endif
#endif /* !SFCTOOL */
Sfi_long(nhfp, &svw.wreserve, "wreserve");
Sfi_int32(nhfp, &svw.wtreserved, "wtreserved");
Sfi_you(nhfp, &u, "gamestate-you");
gy.youmonst.cham = u.mcham;
+2
View File
@@ -282,6 +282,8 @@ savegamestate(NHFILE *nhfp)
urealtime.finish_time = getnow();
urealtime.realtime += timet_delta(urealtime.finish_time,
urealtime.start_timing);
Sfo_long(nhfp, &svw.wreserve, "wreserve");
Sfo_int32(nhfp, &svw.wtreserved, "wtreserved");
Sfo_you(nhfp, &u, "gamestate-you");
Sfo_char(nhfp, yyyymmddhhmmss(ubirthday), "gamestate-ubirthday", 14);
Sfo_long(nhfp, &urealtime.realtime, "gamestate-realtime");