Exactly what it says on the tin. Because sector's floor and ceiling secplanes are readonly, I can't call functions on them, such as ChangeHeight (although I can still read their member variables).
I don't know if this is intentional, though.
Cannot call secplane functions on sector floor/ceil planes
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
- Marisa the Magician
- Posts: 3886
- Joined: Fri Feb 08, 2008 9:15 am
- Preferred Pronouns: She/Her
- Operating System Version (Optional): (btw I use) Arch
- Graphics Processor: nVidia with Vulkan support
- Location: Vigo, Galicia
- Contact:
Re: Cannot call secplane functions on sector floor/ceil plan
There are only two functions in SecPlane structure that require mutable object.
I think HeightDiff() must be const but ChangeHeight() cannot be used at all currently. Probably it should be removed.
I think HeightDiff() must be const but ChangeHeight() cannot be used at all currently. Probably it should be removed.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49056
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Cannot call secplane functions on sector floor/ceil plan
This was supposed to be accessible to the plane movement thinkers which never got scriptified. For the rest of the engine this is not really feasible to change because it is too low level.
Re: Cannot call secplane functions on sector floor/ceil plan
HeightDiff() was fixed in f629678.