Restore pre-r5821 floor glass behavior: nothing.

git-svn-id: https://svn.eduke32.com/eduke32@5949 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2016-12-26 06:01:18 +00:00
parent ec25bfa281
commit c20e41d0c8

View file

@ -1765,7 +1765,10 @@ int Sect_DamageCeilingOrFloor(int damageFloor, int const sectNum)
if (returnValue < 0)
return 0;
int16_t * const pPicnum = damageFloor ? &sector[sectNum].floorpicnum : &sector[sectNum].ceilingpicnum;
if (damageFloor)
return 0;
int16_t * const pPicnum = &sector[sectNum].ceilingpicnum;
if (returnValue == (1<<20))
{
@ -1780,8 +1783,8 @@ int Sect_DamageCeilingOrFloor(int damageFloor, int const sectNum)
case WALLLIGHT2__STATIC: *pPicnum = WALLLIGHTBUST2; goto GLASSBREAK_CODE;
case WALLLIGHT3__STATIC: *pPicnum = WALLLIGHTBUST3; goto GLASSBREAK_CODE;
case WALLLIGHT4__STATIC: *pPicnum = WALLLIGHTBUST4; goto GLASSBREAK_CODE;
case TECHLIGHT2__STATIC: sector[sectNum].ceilingpicnum = TECHLIGHTBUST2; goto GLASSBREAK_CODE;
case TECHLIGHT4__STATIC: sector[sectNum].ceilingpicnum = TECHLIGHTBUST4;
case TECHLIGHT2__STATIC: *pPicnum = TECHLIGHTBUST2; goto GLASSBREAK_CODE;
case TECHLIGHT4__STATIC: *pPicnum = TECHLIGHTBUST4;
GLASSBREAK_CODE:
A_SpawnCeilingGlass(g_player[myconnectindex].ps->i, sectNum, 10);