mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
parent
51274c1c83
commit
9b1ec60e3c
@ -61,8 +61,13 @@ result_e T_MovePlane
|
|||||||
fixed_t lastpos;
|
fixed_t lastpos;
|
||||||
fixed_t destheight; //jff 02/04/98 used to keep floors/ceilings
|
fixed_t destheight; //jff 02/04/98 used to keep floors/ceilings
|
||||||
// from moving thru each other
|
// from moving thru each other
|
||||||
|
static boolean moved_ceil, moved_floor;
|
||||||
|
|
||||||
sector->oldgametic = gametic;
|
if (sector->oldgametic != gametic)
|
||||||
|
{
|
||||||
|
sector->oldgametic = gametic;
|
||||||
|
moved_ceil = moved_floor = false;
|
||||||
|
}
|
||||||
|
|
||||||
switch(floorOrCeiling)
|
switch(floorOrCeiling)
|
||||||
{
|
{
|
||||||
@ -70,7 +75,11 @@ result_e T_MovePlane
|
|||||||
// Moving a floor
|
// Moving a floor
|
||||||
|
|
||||||
// [AM] Store old sector heights for interpolation.
|
// [AM] Store old sector heights for interpolation.
|
||||||
sector->oldfloorheight = sector->floorheight;
|
if (!moved_floor)
|
||||||
|
{
|
||||||
|
sector->oldfloorheight = sector->floorheight;
|
||||||
|
moved_floor = true;
|
||||||
|
}
|
||||||
|
|
||||||
switch(direction)
|
switch(direction)
|
||||||
{
|
{
|
||||||
@ -150,7 +159,11 @@ result_e T_MovePlane
|
|||||||
// moving a ceiling
|
// moving a ceiling
|
||||||
|
|
||||||
// [AM] Store old sector heights for interpolation.
|
// [AM] Store old sector heights for interpolation.
|
||||||
sector->oldceilingheight = sector->ceilingheight;
|
if (!moved_ceil)
|
||||||
|
{
|
||||||
|
sector->oldceilingheight = sector->ceilingheight;
|
||||||
|
moved_ceil = true;
|
||||||
|
}
|
||||||
|
|
||||||
switch(direction)
|
switch(direction)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user