diff options
author | Simon Howard | 2006-10-05 22:12:22 +0000 |
---|---|---|
committer | Simon Howard | 2006-10-05 22:12:22 +0000 |
commit | d2b34da108fae24c9c70ab00aa261cc9648018c3 (patch) | |
tree | 3ca5729fedc3f44462051fed4e4c7580a799ed2a /src/deh_ammo.c | |
parent | 09180d3f73e522c1e0c43993aec28cf339dcf74d (diff) | |
download | chocolate-doom-d2b34da108fae24c9c70ab00aa261cc9648018c3.tar.gz chocolate-doom-d2b34da108fae24c9c70ab00aa261cc9648018c3.tar.bz2 chocolate-doom-d2b34da108fae24c9c70ab00aa261cc9648018c3.zip |
Dehacked information checksum generation
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 687
Diffstat (limited to 'src/deh_ammo.c')
-rw-r--r-- | src/deh_ammo.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/deh_ammo.c b/src/deh_ammo.c index 7709894f..a6ecf52c 100644 --- a/src/deh_ammo.c +++ b/src/deh_ammo.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: deh_ammo.c 175 2005-10-08 20:54:16Z fraggle $ +// $Id: deh_ammo.c 687 2006-10-05 22:12:22Z fraggle $ // // Copyright(C) 2005 Simon Howard // @@ -106,6 +106,17 @@ static void DEH_AmmoParseLine(deh_context_t *context, char *line, void *tag) } } +static void DEH_AmmoMD5Hash(md5_context_t *context) +{ + int i; + + for (i=0; i<NUMAMMO; ++i) + { + MD5_UpdateInt32(context, clipammo[i]); + MD5_UpdateInt32(context, maxammo[i]); + } +} + deh_section_t deh_section_ammo = { "Ammo", @@ -113,5 +124,6 @@ deh_section_t deh_section_ammo = DEH_AmmoStart, DEH_AmmoParseLine, NULL, + DEH_AmmoMD5Hash, }; |