commit 4de94e327d9182a244a29be3ff71e56f18b55b2a
Author: Turo Lamminen <turol@iki.fi>
AuthorDate: Tue Aug 30 20:14:38 2022 +0300
Commit: Turo Lamminen <turol@iki.fi>
CommitDate: Tue Aug 30 20:15:44 2022 +0300
Improve type correctness in heretic DEH code
---
src/heretic/deh_frame.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/heretic/deh_frame.c b/src/heretic/deh_frame.c
index 727b46c8..71106030 100644
--- a/src/heretic/deh_frame.c
+++ b/src/heretic/deh_frame.c
@@ -32,7 +32,7 @@
typedef struct
{
int offsets[deh_hhe_num_versions];
- void (*func)();
+ void (*func)(struct mobj_s *, struct player_s *, struct pspdef_s *);
} hhe_action_pointer_t;
// Offsets of action pointers within the Heretic executables.
@@ -216,7 +216,7 @@ static void *DEH_FrameStart(deh_context_t *context, char *line)
return state;
}
-static boolean GetActionPointerForOffset(int offset, void **result)
+static boolean GetActionPointerForOffset(int offset, void (**result)(struct mobj_s *, struct player_s *, struct pspdef_s *))
{
int i;
@@ -289,7 +289,7 @@ static void DEH_FrameParseLine(deh_context_t *context, char *line, void *tag)
if (!strcasecmp(variable_name, "Action pointer"))
{
- void *func;
+ void (*func)(struct mobj_s *, struct player_s *, struct pspdef_s *);
if (!GetActionPointerForOffset(ivalue, &func))
{