Fixed const correctness for secplane structure

https://forum.zdoom.org/viewtopic.php?t=59151
This commit is contained in:
alexey.lysiuk 2018-01-18 15:34:56 +02:00
parent 6d20da8ab5
commit f629678320
2 changed files with 2 additions and 2 deletions

View file

@ -394,7 +394,7 @@ public:
}
// Moves a plane up/down by hdiff units
double GetChangedHeight(double hdiff)
double GetChangedHeight(double hdiff) const
{
return D - hdiff * normal.Z;
}

View file

@ -184,7 +184,7 @@ struct SecPlane native play
native bool isEqual(Secplane other) const;
native void ChangeHeight(double hdiff);
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;
}