Fix buggy swinging door behavior

git-svn-id: https://svn.eduke32.com/eduke32@6253 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-06-24 06:31:37 +00:00
parent 4e3f55df9b
commit 81ca397802
2 changed files with 1 additions and 9 deletions

View file

@ -6540,14 +6540,9 @@ ACTOR_STATIC void G_MoveEffectors(void) //STATNUM 3
for (SPRITES_OF(STAT_PLAYER, k)) for (SPRITES_OF(STAT_PLAYER, k))
{ {
if (sprite[k].owner >= 0 && clipinsidebox((vec2_t *)&sprite[k], j, 144) == 1) if (sprite[k].owner >= 0 && clipinsidebox((vec2_t *)&sprite[k], j, pPlayer->clipdist << 1) == 1)
{ {
pData[5] = 8; // Delay pData[5] = 8; // Delay
k = (SP(spriteNum) >> 3) * pData[3];
pData[2] -= k;
pData[4] -= k;
A_MoveSector(spriteNum);
setsprite(spriteNum, (vec3_t *)pSprite);
goto next_sprite; goto next_sprite;
} }
} }

View file

@ -896,10 +896,7 @@ REDODOOR:
} }
if (i < 0) if (i < 0)
{
OSD_Printf("WARNING: ST_23_SWINGING_DOOR without SE_11_SWINGING_DOOR!\n");
return; return;
} // JBF
int const tag = sector[SECT(i)].lotag&0x8000; int const tag = sector[SECT(i)].lotag&0x8000;