Invalid Linedef types 413, 423 and 424 not working

Status
Not open for further replies.

Ricardo

Dead Guybrush in netgames
So I was testing something on map editing and ran into these...

Basically, linedef types 423 (change sky) and 424 (change weather) only work if they have the No Climb flag active and 413 (change music) doesn't work at all.



Now, I'm not expert but went ahead to try figure out what the problem was on the source and the only conclusion I've reached was that the function P_IsLocalPlayer is somehow broken. How the hell did I conclude that? Well, take a look at these "if statements" found inside the function P_ProcessLineSpecial at p_spec.c :

Change Music:
if (mo && mo->player && P_IsLocalPlayer(mo->player))

Change Sky
if ((mo && P_IsLocalPlayer(mo->player)) || (line->flags & ML_NOCLIMB))

Change Weather
if ((mo && P_IsLocalPlayer(mo->player)) || (line->flags & ML_NOCLIMB))

The specific code for each linedef type only runs if it evaluates true on the respective "if statement" so I found out on Workbench that the last two work with the No Climb flag active but the first one doesn't work at all... You can see where I'm getting at.
 
Last edited by a moderator:
All three are working perfectly fine for me. Are you sure you didn't accidentally mess up the trigger linedef executors or something silly like that?
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top