From b63ef25d6e885765c22dda92d85df463d5896fcd Mon Sep 17 00:00:00 2001 From: qbix79 Date: Fri, 25 Apr 2008 10:22:22 +0000 Subject: [PATCH] Fix door opening git-svn-id: https://svn.eduke32.com/eduke32@713 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/actors.c | 9 ++++++--- polymer/eduke32/source/gameexec.c | 4 +++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/polymer/eduke32/source/actors.c b/polymer/eduke32/source/actors.c index fd3fde409..c48002814 100644 --- a/polymer/eduke32/source/actors.c +++ b/polymer/eduke32/source/actors.c @@ -1331,7 +1331,8 @@ BOLT: static void movestandables(void) { int i = headspritestat[6], j, k, nexti, nextj, p=0, sect, switchpicnum; - int l=0, x, *t; + int l=0, x; + intptr_t *t; spritetype *s; short m; @@ -3441,7 +3442,8 @@ static short LocateTheLocator(int n,int sn) static void moveactors(void) { - int x, m, l, *t; + int x, m, l; + intptr_t *t; int a, j, nexti, nextj, sect, p, switchpicnum, k; spritetype *s; int i = headspritestat[1]; @@ -5331,7 +5333,8 @@ BOLT: static void moveeffectors(void) //STATNUM 3 { - int q=0, l, m, x, st, j, *t; + int q=0, l, m, x, st, j; + intptr_t *t; int i = headspritestat[3], nexti, nextk, p, sh, nextj; short k; spritetype *s; diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index 0cf13ce0e..a787a985a 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -3727,7 +3727,8 @@ void OnEvent(int iEventID, int iActor, int iPlayer, int lDist) { int og_i=g_i, og_p=g_p, okillit_flag=killit_flag; - int og_x=g_x, *og_t=g_t, *oinsptr=insptr; + int og_x=g_x, *og_t=g_t; + intptr_t *oinsptr=insptr; spritetype *og_sp=g_sp; g_i = iActor; // current sprite ID @@ -4474,6 +4475,7 @@ static int parse(void) case CON_AI: insptr++; + //Following changed to use pointersizes g_t[5] = *insptr++; // Ai g_t[4] = *(intptr_t *)(g_t[5]); // Action g_t[1] = *(((intptr_t *)g_t[5])+1); // move