mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-29 19:50:37 +00:00
Useless removal of a couple of redundant blocks of code
git-svn-id: https://svn.eduke32.com/eduke32@6499 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
fe9c6d25f4
commit
15b223840b
1 changed files with 9 additions and 29 deletions
|
@ -1383,8 +1383,8 @@ static void Yax_SetBunchInterpolation(int32_t sectnum, int32_t cf)
|
|||
|
||||
// A_Spawn has two forms with arguments having different meaning:
|
||||
//
|
||||
// 1. j>=0: Spawn from parent sprite <j> with picnum <pn>
|
||||
// 2. j<0: Spawn from already *existing* sprite <pn>
|
||||
// 1. spriteNum>=0: Spawn from parent sprite <spriteNum> with picnum <tileNum>
|
||||
// 2. spriteNum<0: Spawn from already *existing* sprite <tileNum>
|
||||
int A_Spawn(int spriteNum, int tileNum)
|
||||
{
|
||||
int newSprite;
|
||||
|
@ -1740,28 +1740,15 @@ int A_Spawn(int spriteNum, int tileNum)
|
|||
{
|
||||
updatesector(pSprite->x - 108, pSprite->y + 108, &pukeSect);
|
||||
if (pukeSect >= 0 && sector[pukeSect].floorz != sector[pSprite->sectnum].floorz)
|
||||
{
|
||||
pSprite->xrepeat = pSprite->yrepeat = 0;
|
||||
changespritestat(newSprite, STAT_MISC);
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
pSprite->xrepeat = pSprite->yrepeat = 0;
|
||||
changespritestat(newSprite, STAT_MISC);
|
||||
break;
|
||||
goto zero_puke;
|
||||
}
|
||||
else goto zero_puke;
|
||||
}
|
||||
else
|
||||
{
|
||||
pSprite->xrepeat = pSprite->yrepeat = 0;
|
||||
changespritestat(newSprite, STAT_MISC);
|
||||
break;
|
||||
}
|
||||
else goto zero_puke;
|
||||
}
|
||||
else
|
||||
{
|
||||
zero_puke:
|
||||
pSprite->xrepeat = pSprite->yrepeat = 0;
|
||||
changespritestat(newSprite, STAT_MISC);
|
||||
break;
|
||||
|
@ -1972,20 +1959,13 @@ int A_Spawn(int spriteNum, int tileNum)
|
|||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
pSprite->xrepeat = pSprite->yrepeat = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
pSprite->xrepeat = pSprite->yrepeat = 0;
|
||||
break;
|
||||
else goto zero_footprint;
|
||||
}
|
||||
else goto zero_footprint;
|
||||
}
|
||||
else
|
||||
{
|
||||
zero_footprint:
|
||||
pSprite->xrepeat = pSprite->yrepeat = 0;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue