From fe49cfc004026cdf92c58056079f68a01ba99c7f Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 18 Apr 2010 18:30:34 +0000 Subject: Make tables const, minor commenting and formatting fixes. Subversion-branch: /branches/raven-branch Subversion-revision: 1904 --- src/heretic/deh_frame.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/heretic/deh_frame.c') diff --git a/src/heretic/deh_frame.c b/src/heretic/deh_frame.c index 6d7f6c3b..c576d490 100644 --- a/src/heretic/deh_frame.c +++ b/src/heretic/deh_frame.c @@ -44,11 +44,16 @@ typedef struct void (*func)(); } hhe_action_pointer_t; -// Offsets of action pointers within the Heretic 1.0 executable. +// Offsets of action pointers within the Heretic executables. +// Different versions have different offsets. // (Seriously Greg, was this really necessary? What was wrong with the // "copying action pointer from another frame" technique used in dehacked?) -static hhe_action_pointer_t action_pointers[] = { +// Offset Action function +// v1.0 v1.2 v1.3 + +static const hhe_action_pointer_t action_pointers[] = +{ { { 77680, 80144, 80208 }, A_AccTeleGlitter }, { { 78608, 81104, 81168 }, A_AddPlayerCorpse }, { { 115808, 118000, 118240 }, A_AddPlayerRain }, -- cgit v1.2.3