mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 05:41:42 +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
|
@ -182,7 +182,7 @@ void T_DynamicSlopeLine (dynlineplanethink_t* th)
|
||||||
pslope_t* slope = th->slope;
|
pslope_t* slope = th->slope;
|
||||||
line_t* srcline = th->sourceline;
|
line_t* srcline = th->sourceline;
|
||||||
|
|
||||||
fixed_t zdelta;
|
fixed_t zdelta, oldoz = slope->o.z;
|
||||||
|
|
||||||
switch(th->type) {
|
switch(th->type) {
|
||||||
case DP_FRONTFLOOR:
|
case DP_FRONTFLOOR:
|
||||||
|
@ -209,7 +209,7 @@ void T_DynamicSlopeLine (dynlineplanethink_t* th)
|
||||||
return;
|
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->zdelta = FixedDiv(zdelta, th->extent);
|
||||||
slope->zangle = R_PointToAngle2(0, 0, th->extent, -zdelta);
|
slope->zangle = R_PointToAngle2(0, 0, th->extent, -zdelta);
|
||||||
slope->moved = true;
|
slope->moved = true;
|
||||||
|
|
Loading…
Reference in a new issue