Store speed pad speed with full precision

This commit is contained in:
GenericHeroGuy 2025-03-04 01:07:57 +01:00
parent 918c9ec0a1
commit 6fdfeb42a0
2 changed files with 2 additions and 2 deletions

View file

@ -4936,7 +4936,7 @@ static void P_ConvertBinaryLinedefTypes(void)
lines[i].args[2] = !!(lines[i].flags & ML_MIDSOLID);
break;
case 4: //Speed pad parameters
lines[i].args[0] = P_AproxDistance(lines[i].v2->x-lines[i].v1->x, lines[i].v2->y-lines[i].v1->y) >> FRACBITS;
lines[i].args[0] = P_AproxDistance(lines[i].v2->x-lines[i].v1->x, lines[i].v2->y-lines[i].v1->y);
if (lines[i].flags & ML_MIDSOLID)
lines[i].args[1] |= TMSP_NOTELEPORT;
if (lines[i].flags & ML_WRAPMIDTEX)

View file

@ -5044,7 +5044,7 @@ static void P_ProcessSpeedPad(player_t *player, sector_t *sector, sector_t *rove
}
lineangle = R_PointToAngle2(lines[lineindex].v1->x, lines[lineindex].v1->y, lines[lineindex].v2->x, lines[lineindex].v2->y);
linespeed = lines[lineindex].args[0] << FRACBITS;
linespeed = lines[lineindex].args[0];
if (linespeed == 0)
{