mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-23 19:31:05 +00:00
Remove crusher types from T_MoveCeiling (they're handled by T_CrushCeiling)
This commit is contained in:
parent
8f39e23105
commit
d5490132b9
1 changed files with 0 additions and 43 deletions
|
@ -88,11 +88,6 @@ void T_MoveCeiling(ceiling_t *ceiling)
|
|||
dontupdate = true;
|
||||
break;
|
||||
|
||||
case fastCrushAndRaise:
|
||||
case crushAndRaise:
|
||||
ceiling->direction = -1;
|
||||
break;
|
||||
|
||||
case bounceCeiling:
|
||||
{
|
||||
fixed_t dest = ceiling->topheight;
|
||||
|
@ -176,15 +171,6 @@ void T_MoveCeiling(ceiling_t *ceiling)
|
|||
{
|
||||
switch (ceiling->type)
|
||||
{
|
||||
// make platform stop at bottom of all crusher strokes
|
||||
// except generalized ones, reset speed, start back up
|
||||
case crushAndRaise:
|
||||
ceiling->speed = CEILSPEED;
|
||||
/* FALLTHRU */
|
||||
case fastCrushAndRaise:
|
||||
ceiling->direction = 1;
|
||||
break;
|
||||
|
||||
case instantMoveCeilingByFrontSector:
|
||||
if (ceiling->texture > -1) // flat changing
|
||||
ceiling->sector->ceilingpic = ceiling->texture;
|
||||
|
@ -267,18 +253,6 @@ void T_MoveCeiling(ceiling_t *ceiling)
|
|||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (res == crushed)
|
||||
{
|
||||
switch (ceiling->type)
|
||||
{
|
||||
case crushAndRaise:
|
||||
ceiling->speed = FixedDiv(CEILSPEED,8*FRACUNIT);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -411,23 +385,6 @@ INT32 EV_DoCeiling(mtag_t tag, line_t *line, ceiling_e type)
|
|||
|
||||
switch (type)
|
||||
{
|
||||
case fastCrushAndRaise:
|
||||
ceiling->crush = true;
|
||||
ceiling->topheight = sec->ceilingheight;
|
||||
ceiling->bottomheight = sec->floorheight + (8*FRACUNIT);
|
||||
ceiling->direction = -1;
|
||||
ceiling->speed = CEILSPEED * 2;
|
||||
break;
|
||||
|
||||
case crushAndRaise:
|
||||
ceiling->crush = true;
|
||||
ceiling->topheight = sec->ceilingheight;
|
||||
ceiling->bottomheight = sec->floorheight;
|
||||
ceiling->bottomheight += 4*FRACUNIT;
|
||||
ceiling->direction = -1;
|
||||
ceiling->speed = line->dx;
|
||||
break;
|
||||
|
||||
case raiseToHighest:
|
||||
ceiling->topheight = P_FindHighestCeilingSurrounding(sec);
|
||||
ceiling->direction = 1;
|
||||
|
|
Loading…
Reference in a new issue