mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-23 19:31:05 +00:00
When attaching to a wall to do a climb, the second sidedef wasn't be handled properly.
This commit is contained in:
parent
060b79452a
commit
52384053ce
1 changed files with 3 additions and 5 deletions
|
@ -3506,11 +3506,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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue