mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-31 20:22:40 +00:00
Beam does not render if finish line is curved at ALL.
Alternative will need created for sprint maps. Don't care atm.
This commit is contained in:
parent
58ea0bf677
commit
197f21d383
1 changed files with 8 additions and 1 deletions
|
|
@ -3110,6 +3110,8 @@ void K_RunFinishLineBeam(void)
|
|||
{
|
||||
if (lines[i].special == 2001)
|
||||
{
|
||||
angle_t thisAngle = R_PointToAngle2(0, 0, lines[i].dx, lines[i].dy);
|
||||
|
||||
bounds[0] = min(bounds[0], min(lines[i].v1->x, lines[i].v2->x)); // min x
|
||||
bounds[1] = max(bounds[1], max(lines[i].v1->x, lines[i].v2->x)); // max x
|
||||
bounds[2] = min(bounds[2], min(lines[i].v1->y, lines[i].v2->y)); // min y
|
||||
|
|
@ -3117,9 +3119,14 @@ void K_RunFinishLineBeam(void)
|
|||
|
||||
if (valid == false)
|
||||
{
|
||||
angle = R_PointToAngle2(0, 0, lines[i].dx, lines[i].dy);
|
||||
angle = thisAngle;
|
||||
flags = lines[i].flags;
|
||||
}
|
||||
else if (angle != thisAngle)
|
||||
{
|
||||
valid = false;
|
||||
break;
|
||||
}
|
||||
|
||||
valid = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue