Fix door opening

git-svn-id: https://svn.eduke32.com/eduke32@713 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
qbix79 2008-04-25 10:22:22 +00:00
parent 9ed478a719
commit b63ef25d6e
2 changed files with 9 additions and 4 deletions

View file

@ -1331,7 +1331,8 @@ BOLT:
static void movestandables(void) static void movestandables(void)
{ {
int i = headspritestat[6], j, k, nexti, nextj, p=0, sect, switchpicnum; 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; spritetype *s;
short m; short m;
@ -3441,7 +3442,8 @@ static short LocateTheLocator(int n,int sn)
static void moveactors(void) 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; int a, j, nexti, nextj, sect, p, switchpicnum, k;
spritetype *s; spritetype *s;
int i = headspritestat[1]; int i = headspritestat[1];
@ -5331,7 +5333,8 @@ BOLT:
static void moveeffectors(void) //STATNUM 3 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; int i = headspritestat[3], nexti, nextk, p, sh, nextj;
short k; short k;
spritetype *s; spritetype *s;

View file

@ -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_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; spritetype *og_sp=g_sp;
g_i = iActor; // current sprite ID g_i = iActor; // current sprite ID
@ -4474,6 +4475,7 @@ static int parse(void)
case CON_AI: case CON_AI:
insptr++; insptr++;
//Following changed to use pointersizes
g_t[5] = *insptr++; // Ai g_t[5] = *insptr++; // Ai
g_t[4] = *(intptr_t *)(g_t[5]); // Action g_t[4] = *(intptr_t *)(g_t[5]); // Action
g_t[1] = *(((intptr_t *)g_t[5])+1); // move g_t[1] = *(((intptr_t *)g_t[5])+1); // move