Okay, let's not break UDMF speedpads

Change binary conversion to 2.2 behavior, but ignore it and use
linedef length directly for kart maps
This commit is contained in:
GenericHeroGuy 2025-03-04 01:57:03 +01:00
parent 6fdfeb42a0
commit 41f2bbcb1e
2 changed files with 4 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);
lines[i].args[0] = sides[lines[i].sidenum[0]].textureoffset >> FRACBITS;
if (lines[i].flags & ML_MIDSOLID)
lines[i].args[1] |= TMSP_NOTELEPORT;
if (lines[i].flags & ML_WRAPMIDTEX)

View file

@ -5044,7 +5044,9 @@ 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];
linespeed = mapnamespace == MNS_SRB2KART
? P_AproxDistance(lines[lineindex].v2->x-lines[lineindex].v1->x, lines[lineindex].v2->y-lines[lineindex].v1->y)
: lines[lineindex].args[0] << FRACBITS;
if (linespeed == 0)
{