mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 04:51:19 +00:00
- Fixed: FloorAndCeiling_Raise/Lower did not work with slopes because they
used ZatPointDist instead of PointToDist to calculate the destination distance for the plane equation. - Fixed: Sky scroll positions could "jump" once they wrapped past position 32767. An fmod now keeps them within range of the sky textures' real widths. SVN r132 (trunk)
This commit is contained in:
parent
3431564b02
commit
2b91f31d86
3 changed files with 13 additions and 6 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
May 19, 2006
|
||||||
|
- Fixed: FloorAndCeiling_Raise/Lower did not work with slopes because they
|
||||||
|
used ZatPointDist instead of PointToDist to calculate the destination
|
||||||
|
distance for the plane equation.
|
||||||
|
- Fixed: Sky scroll positions could "jump" once they wrapped past position
|
||||||
|
32767. An fmod now keeps them within range of the sky textures' real widths.
|
||||||
|
|
||||||
May 19, 2006 (Changes by Graf Zahl)
|
May 19, 2006 (Changes by Graf Zahl)
|
||||||
- Increased the StrifeTypes array to 999 entries so that custom WADs have
|
- Increased the StrifeTypes array to 999 entries so that custom WADs have
|
||||||
more flexibility when defining dialogs.
|
more flexibility when defining dialogs.
|
||||||
|
|
|
@ -1026,15 +1026,15 @@ bool EV_DoElevator (line_t *line, DElevator::EElevator elevtype,
|
||||||
// [RH] elevate up by a specific amount
|
// [RH] elevate up by a specific amount
|
||||||
case DElevator::elevateRaise:
|
case DElevator::elevateRaise:
|
||||||
elevator->m_Direction = 1;
|
elevator->m_Direction = 1;
|
||||||
elevator->m_FloorDestDist = sec->floorplane.ZatPointDist (sec->soundorg[0], sec->soundorg[1], floorheight + height);
|
elevator->m_FloorDestDist = sec->floorplane.PointToDist (sec->soundorg[0], sec->soundorg[1], floorheight + height);
|
||||||
elevator->m_CeilingDestDist = sec->ceilingplane.ZatPointDist (sec->soundorg[0], sec->soundorg[1], ceilingheight + height);
|
elevator->m_CeilingDestDist = sec->ceilingplane.PointToDist (sec->soundorg[0], sec->soundorg[1], ceilingheight + height);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// [RH] elevate down by a specific amount
|
// [RH] elevate down by a specific amount
|
||||||
case DElevator::elevateLower:
|
case DElevator::elevateLower:
|
||||||
elevator->m_Direction = -1;
|
elevator->m_Direction = -1;
|
||||||
elevator->m_FloorDestDist = sec->floorplane.ZatPointDist (sec->soundorg[0], sec->soundorg[1], floorheight - height);
|
elevator->m_FloorDestDist = sec->floorplane.PointToDist (sec->soundorg[0], sec->soundorg[1], floorheight - height);
|
||||||
elevator->m_CeilingDestDist = sec->ceilingplane.ZatPointDist (sec->soundorg[0], sec->soundorg[1], ceilingheight - height);
|
elevator->m_CeilingDestDist = sec->ceilingplane.PointToDist (sec->soundorg[0], sec->soundorg[1], ceilingheight - height);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -803,6 +803,6 @@ void R_UpdateAnimations (DWORD mstime)
|
||||||
|
|
||||||
// Scroll the sky
|
// Scroll the sky
|
||||||
double ms = mstime * FRACUNIT;
|
double ms = mstime * FRACUNIT;
|
||||||
sky1pos = fixed_t(ms * level.skyspeed1);
|
sky1pos = fixed_t(fmod (ms * level.skyspeed1, double(TexMan[sky1texture]->GetWidth() << FRACBITS)));
|
||||||
sky2pos = fixed_t(ms * level.skyspeed2);
|
sky2pos = fixed_t(fmod (ms * level.skyspeed2, double(TexMan[sky2texture]->GetWidth() << FRACBITS)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue