mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
Fix door opening
git-svn-id: https://svn.eduke32.com/eduke32@713 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9ed478a719
commit
b63ef25d6e
2 changed files with 9 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue