mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 12:01:05 +00:00
Fix dynamic slope height changes not always being considered as "moved"
This commit is contained in:
parent
05c97dbd56
commit
8e7cce8b61
1 changed files with 3 additions and 3 deletions
|
@ -181,8 +181,8 @@ void T_DynamicSlopeLine (dynlineplanethink_t* th)
|
|||
{
|
||||
pslope_t* slope = th->slope;
|
||||
line_t* srcline = th->sourceline;
|
||||
|
||||
fixed_t zdelta;
|
||||
|
||||
fixed_t zdelta, oldoz = slope->o.z;
|
||||
|
||||
switch(th->type) {
|
||||
case DP_FRONTFLOOR:
|
||||
|
@ -209,7 +209,7 @@ void T_DynamicSlopeLine (dynlineplanethink_t* th)
|
|||
return;
|
||||
}
|
||||
|
||||
if (slope->zdelta != FixedDiv(zdelta, th->extent)) {
|
||||
if (slope->zdelta != FixedDiv(zdelta, th->extent) || oldoz != slope->o.z) {
|
||||
slope->zdelta = FixedDiv(zdelta, th->extent);
|
||||
slope->zangle = R_PointToAngle2(0, 0, th->extent, -zdelta);
|
||||
slope->moved = true;
|
||||
|
|
Loading…
Reference in a new issue