summaryrefslogtreecommitdiff
path: root/src/deh_ammo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/deh_ammo.c')
-rw-r--r--src/deh_ammo.c14
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,
};