Remove redundant assignments

git-svn-id: https://svn.eduke32.com/eduke32@7077 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-10-16 06:09:42 +00:00
parent 2ff98ca1ce
commit e77325f2a4
2 changed files with 4 additions and 10 deletions

View file

@ -3937,11 +3937,6 @@ void G_DoSpriteAnimations(int32_t ourx, int32_t oury, int32_t oura, int32_t smoo
uspritetype *const playerTyping = t;
playerTyping->statnum = TSPR_TEMP;
playerTyping->yrepeat = (t->yrepeat >> 3);
if (playerTyping->yrepeat < 4)
playerTyping->yrepeat = 4;
playerTyping->cstat = 0;
playerTyping->picnum = RESPAWNMARKERGREEN;
playerTyping->z = (pSprite->owner >= 0) ? (g_player[playerNum].ps->pos.z - (20 << 8)) : (pSprite->z - (96 << 8));

View file

@ -859,10 +859,9 @@ REDODOOR:
if (pSector->lotag & 0x8000u)
{
// WTF?
int const q = (pSector->ceilingz + pSector->floorz) >> 1;
j = SetAnimation(sectNum, &pSector->floorz, q, pSector->extra);
j = SetAnimation(sectNum, &pSector->ceilingz, q, pSector->extra);
SetAnimation(sectNum, &pSector->floorz, q, pSector->extra);
SetAnimation(sectNum, &pSector->ceilingz, q, pSector->extra);
}
else
{
@ -871,8 +870,8 @@ REDODOOR:
if (floorNeighbor>=0 && ceilingNeighbor>=0)
{
j = SetAnimation(sectNum, &pSector->floorz, sector[floorNeighbor].floorz, pSector->extra);
j = SetAnimation(sectNum, &pSector->ceilingz, sector[ceilingNeighbor].ceilingz, pSector->extra);
SetAnimation(sectNum, &pSector->floorz, sector[floorNeighbor].floorz, pSector->extra);
SetAnimation(sectNum, &pSector->ceilingz, sector[ceilingNeighbor].ceilingz, pSector->extra);
}
else
{