Merge branch 'issue834' into 'next'

When attaching to a wall to do a climb, the second sidedef wasn't be handled properly.

Closes #834

See merge request STJr/SRB2!1908
This commit is contained in:
sphere 2023-05-25 21:11:25 +00:00
commit 796c06e2f7

View file

@ -3521,11 +3521,9 @@ static void PTR_GlideClimbTraverse(line_t *li)
if (fofline)
whichside = 0;
if (!whichside)
{
slidemo->player->lastsidehit = checkline->sidenum[whichside];
slidemo->player->lastlinehit = (INT16)(checkline - lines);
}
// Even if you attach to the second side of a linedef, we want to know the last hit.
slidemo->player->lastsidehit = checkline->sidenum[whichside];
slidemo->player->lastlinehit = (INT16)(checkline - lines);
P_Thrust(slidemo, slidemo->angle, FixedMul(5*FRACUNIT, slidemo->scale));
}