Cannot call secplane functions on sector floor/ceil planes

Bugs that have been investigated and resolved somehow.

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.
Post Reply
User avatar
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:

Cannot call secplane functions on sector floor/ceil planes

Post by Marisa the Magician »

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.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Cannot call secplane functions on sector floor/ceil plan

Post by _mental_ »

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
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

Post by Graf Zahl »

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.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Cannot call secplane functions on sector floor/ceil plan

Post by _mental_ »

HeightDiff() was fixed in f629678.
Post Reply

Return to “Closed Bugs [GZDoom]”