mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Fix buggy swinging door behavior
git-svn-id: https://svn.eduke32.com/eduke32@6253 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
4e3f55df9b
commit
81ca397802
2 changed files with 1 additions and 9 deletions
|
@ -6540,14 +6540,9 @@ ACTOR_STATIC void G_MoveEffectors(void) //STATNUM 3
|
|||
|
||||
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
|
||||
k = (SP(spriteNum) >> 3) * pData[3];
|
||||
pData[2] -= k;
|
||||
pData[4] -= k;
|
||||
A_MoveSector(spriteNum);
|
||||
setsprite(spriteNum, (vec3_t *)pSprite);
|
||||
goto next_sprite;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -896,10 +896,7 @@ REDODOOR:
|
|||
}
|
||||
|
||||
if (i < 0)
|
||||
{
|
||||
OSD_Printf("WARNING: ST_23_SWINGING_DOOR without SE_11_SWINGING_DOOR!\n");
|
||||
return;
|
||||
} // JBF
|
||||
|
||||
int const tag = sector[SECT(i)].lotag&0x8000;
|
||||
|
||||
|
|
Loading…
Reference in a new issue