mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
Fixed const correctness for secplane structure
https://forum.zdoom.org/viewtopic.php?t=59151
This commit is contained in:
parent
6d20da8ab5
commit
f629678320
2 changed files with 2 additions and 2 deletions
|
@ -394,7 +394,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
// Moves a plane up/down by hdiff units
|
// Moves a plane up/down by hdiff units
|
||||||
double GetChangedHeight(double hdiff)
|
double GetChangedHeight(double hdiff) const
|
||||||
{
|
{
|
||||||
return D - hdiff * normal.Z;
|
return D - hdiff * normal.Z;
|
||||||
}
|
}
|
||||||
|
|
|
@ -184,7 +184,7 @@ struct SecPlane native play
|
||||||
native bool isEqual(Secplane other) const;
|
native bool isEqual(Secplane other) const;
|
||||||
native void ChangeHeight(double hdiff);
|
native void ChangeHeight(double hdiff);
|
||||||
native double GetChangedHeight(double hdiff) const;
|
native double GetChangedHeight(double hdiff) const;
|
||||||
native double HeightDiff(double oldd, double newd = 0.0);
|
native double HeightDiff(double oldd, double newd = 0.0) const;
|
||||||
native double PointToDist(Vector2 xy, double z) const;
|
native double PointToDist(Vector2 xy, double z) const;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue