summaryrefslogtreecommitdiff
path: root/src/strife/p_saveg.c
diff options
context:
space:
mode:
authorJames Haley2010-08-31 01:55:51 +0000
committerJames Haley2010-08-31 01:55:51 +0000
commit5871acd3de5a88ea06d18f80a8f1dddc552e993e (patch)
tree4329d82fc2c25de889917050014f1b6d4968279d /src/strife/p_saveg.c
parentb6ea4375e0b5db116a1cdf27e30273d4a92b7a53 (diff)
downloadchocolate-doom-5871acd3de5a88ea06d18f80a8f1dddc552e993e.tar.gz
chocolate-doom-5871acd3de5a88ea06d18f80a8f1dddc552e993e.tar.bz2
chocolate-doom-5871acd3de5a88ea06d18f80a8f1dddc552e993e.zip
Revamped player_t to match binary layout of structure, aside from
enum-determined arrays which will be tackled individually. Removed player itemcount, secretcount, and didsecret fields. Changed armorpoints, armortype, and killcount to shorts. Added all runtime Strife sector types and changed handling of DOOM types where appropriate. Added nukagecount handling in P_PlayerThink. Subversion-branch: /branches/strife-branch Subversion-revision: 1981
Diffstat (limited to 'src/strife/p_saveg.c')
-rw-r--r--src/strife/p_saveg.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/strife/p_saveg.c b/src/strife/p_saveg.c
index e557e494..6da095e5 100644
--- a/src/strife/p_saveg.c
+++ b/src/strife/p_saveg.c
@@ -721,11 +721,13 @@ static void saveg_read_player_t(player_t *str)
// int killcount;
str->killcount = saveg_read32();
+ // haleyjd 08/30/10 [STRIFE] No itemcount.
// int itemcount;
- str->itemcount = saveg_read32();
+ //str->itemcount = saveg_read32();
+ // haleyjd 08/30/10 [STRIFE] No secretcount.
// int secretcount;
- str->secretcount = saveg_read32();
+ //str->secretcount = saveg_read32();
// char* message;
str->message = saveg_readp();
@@ -754,8 +756,9 @@ static void saveg_read_player_t(player_t *str)
saveg_read_pspdef_t(&str->psprites[i]);
}
+ // haleyjd 08/30/10: [STRIFE] No intermission, no didsecret.
// boolean didsecret;
- str->didsecret = saveg_read32();
+ //str->didsecret = saveg_read32();
}
static void saveg_write_player_t(player_t *str)
@@ -852,11 +855,13 @@ static void saveg_write_player_t(player_t *str)
// int killcount;
saveg_write32(str->killcount);
+ // haleyjd 08/30/10 [STRIFE] No itemcount
// int itemcount;
- saveg_write32(str->itemcount);
+ //saveg_write32(str->itemcount);
+ // haleyjd 08/30/10 [STRIFE] No secretcount
// int secretcount;
- saveg_write32(str->secretcount);
+ //saveg_write32(str->secretcount);
// char* message;
saveg_writep(str->message);
@@ -885,8 +890,9 @@ static void saveg_write_player_t(player_t *str)
saveg_write_pspdef_t(&str->psprites[i]);
}
+ // haleyjd 08/30/10: [STRIFE] No intermission, no secret.
// boolean didsecret;
- saveg_write32(str->didsecret);
+ //saveg_write32(str->didsecret);
}