remove field-level savefile code
This commit is contained in:
@@ -6,8 +6,6 @@
|
||||
#include "hack.h"
|
||||
#include "artifact.h"
|
||||
#include "artilist.h"
|
||||
#include "sfproto.h"
|
||||
|
||||
|
||||
/*
|
||||
* Note: both artilist[] and artiexist[] have a dummy element #0,
|
||||
@@ -85,15 +83,6 @@ NHFILE *nhfp;
|
||||
bwrite(nhfp->fd, (genericptr_t) g.artiexist, sizeof g.artiexist);
|
||||
bwrite(nhfp->fd, (genericptr_t) g.artidisco, sizeof g.artidisco);
|
||||
}
|
||||
if (nhfp->fieldlevel) {
|
||||
int i;
|
||||
|
||||
for (i = 0; i < (1 + NROFARTIFACTS + 1); ++i)
|
||||
sfo_boolean(nhfp, &g.artiexist[i], "artifacts", "g.artiexist", 1);
|
||||
|
||||
for (i = 0; i < NROFARTIFACTS; ++i)
|
||||
sfo_xchar(nhfp, &g.artidisco[i], "artifacts", "g.artidisco", 1);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
@@ -104,15 +93,6 @@ NHFILE *nhfp;
|
||||
mread(nhfp->fd, (genericptr_t) g.artiexist, sizeof g.artiexist);
|
||||
mread(nhfp->fd, (genericptr_t) g.artidisco, sizeof g.artidisco);
|
||||
}
|
||||
if (nhfp->fieldlevel) {
|
||||
int i;
|
||||
|
||||
for (i = 0; i < (1 + NROFARTIFACTS + 1); ++i)
|
||||
sfi_boolean(nhfp, &g.artiexist[i], "artifacts", "g.artiexist", 1);
|
||||
|
||||
for (i = 0; i < NROFARTIFACTS; ++i)
|
||||
sfi_xchar(nhfp, &g.artidisco[i], "artifacts", "g.artidisco", 1);
|
||||
}
|
||||
hack_artifacts(); /* redo non-saved special cases */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user