summaryrefslogtreecommitdiff
path: root/src/deh_thing.c
diff options
context:
space:
mode:
authorSimon Howard2006-10-05 22:12:22 +0000
committerSimon Howard2006-10-05 22:12:22 +0000
commitd2b34da108fae24c9c70ab00aa261cc9648018c3 (patch)
tree3ca5729fedc3f44462051fed4e4c7580a799ed2a /src/deh_thing.c
parent09180d3f73e522c1e0c43993aec28cf339dcf74d (diff)
downloadchocolate-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_thing.c')
-rw-r--r--src/deh_thing.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/deh_thing.c b/src/deh_thing.c
index 3c6457aa..ad2a15be 100644
--- a/src/deh_thing.c
+++ b/src/deh_thing.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: deh_thing.c 188 2005-10-09 23:52:28Z fraggle $
+// $Id: deh_thing.c 687 2006-10-05 22:12:22Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -139,6 +139,16 @@ static void DEH_ThingParseLine(deh_context_t *context, char *line, void *tag)
DEH_SetMapping(context, &thing_mapping, mobj, variable_name, ivalue);
}
+static void DEH_ThingMD5Sum(md5_context_t *context)
+{
+ int i;
+
+ for (i=0; i<NUMMOBJTYPES; ++i)
+ {
+ DEH_StructMD5Sum(context, &thing_mapping, &mobjinfo[i]);
+ }
+}
+
deh_section_t deh_section_thing =
{
"Thing",
@@ -146,5 +156,6 @@ deh_section_t deh_section_thing =
DEH_ThingStart,
DEH_ThingParseLine,
NULL,
+ DEH_ThingMD5Sum,
};