summaryrefslogtreecommitdiff
path: root/src/heretic/deh_htic.h
diff options
context:
space:
mode:
authorSimon Howard2010-04-18 14:51:28 +0000
committerSimon Howard2010-04-18 14:51:28 +0000
commit53ba7baf5191bb16ccfaa2aafd81f11cb210ecca (patch)
treeda75e8fee3a64d03a7c94f65a3e653e40a76987d /src/heretic/deh_htic.h
parentd76bed743c72bfccf5cbbc18dcd9cdb1e75935b3 (diff)
downloadchocolate-doom-53ba7baf5191bb16ccfaa2aafd81f11cb210ecca.tar.gz
chocolate-doom-53ba7baf5191bb16ccfaa2aafd81f11cb210ecca.tar.bz2
chocolate-doom-53ba7baf5191bb16ccfaa2aafd81f11cb210ecca.zip
Add deh_hhe_version variable to specify version of executable used to
generate HHE patch. Refine DEH_MapHereticFrameNumber based on patch version. Subversion-branch: /branches/raven-branch Subversion-revision: 1895
Diffstat (limited to 'src/heretic/deh_htic.h')
-rw-r--r--src/heretic/deh_htic.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/heretic/deh_htic.h b/src/heretic/deh_htic.h
index fefcf818..199ad2fe 100644
--- a/src/heretic/deh_htic.h
+++ b/src/heretic/deh_htic.h
@@ -29,6 +29,17 @@
#include "info.h"
+// HHE executable version. Loading HHE patches is (unfortunately)
+// dependent on the version of the Heretic executable used to make them.
+
+typedef enum
+{
+ deh_hhe_1_0,
+ deh_hhe_1_2,
+ deh_hhe_1_3,
+ deh_hhe_num_versions
+} deh_hhe_version_t;
+
// HHE doesn't know about the last two states in the state table, so
// these are considered invalid.
@@ -41,5 +52,7 @@
int DEH_MapHereticFrameNumber(int frame);
+extern deh_hhe_version_t deh_hhe_version;
+
#endif /* #ifndef DEH_HTIC_H */