mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Remove redundant assignments
git-svn-id: https://svn.eduke32.com/eduke32@7077 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2ff98ca1ce
commit
e77325f2a4
2 changed files with 4 additions and 10 deletions
|
@ -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));
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue